HackMD
    • Sharing Link copied
    • /edit
    • View mode
      • Edit mode
      • View mode
      • Book mode
      • Slide mode
      Edit mode View mode Book mode Slide mode
    • Customize slides
    • Note Permission
    • Read
      • Owners
      • Signed-in users
      • Everyone
      Owners Signed-in users Everyone
    • Write
      • Owners
      • Signed-in users
      • Everyone
      Owners Signed-in users Everyone
    • Commenting & Invitee
    • Publishing
      Please check the box to agree to the Community Guidelines.
      Everyone on the web can find and read all notes of this public team.
      After the note is published, everyone on the web can find and read this note.
      See all published notes on profile page.
    • Commenting Enable
      Disabled Forbidden Owners Signed-in users Everyone
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Invitee
    • No invitee
    • Options
    • Versions and GitHub Sync
    • Transfer ownership
    • Delete this note
    • Note settings
    • Template
    • Insert from template
    • Export
    • Dropbox
    • Google Drive Export to Google Drive
    • Gist
    • Import
    • Dropbox
    • Google Drive Import from Google Drive
    • Gist
    • Clipboard
    • Download
    • Markdown
    • HTML
    • Raw HTML
Menu Note settings Sharing Help
Menu
Options
Versions and GitHub Sync Transfer ownership Delete this note
Export
Dropbox Google Drive Export to Google Drive Gist
Import
Dropbox Google Drive Import from Google Drive Gist Clipboard
Download
Markdown HTML Raw HTML
Back
Sharing
Sharing Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Comment & Invitee
Publishing
Please check the box to agree to the Community Guidelines.
Everyone on the web can find and read all notes of this public team.
After the note is published, everyone on the web can find and read this note.
See all published notes on profile page.
More (Comment, Invitee)
Commenting Enable
Disabled Forbidden Owners Signed-in users Everyone
Permission
Owners
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Invitee
No invitee
   owned this note    owned this note      
Published Linked with GitHub
Like BookmarkBookmarked
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
# CFDE/iHMP walkthrough - 2022 May CFDE Hackathon [![hackmd-github-sync-badge](https://hackmd.io/dW9EoOh3T42eed9q21NLJQ/badge)](https://hackmd.io/dW9EoOh3T42eed9q21NLJQ) Permanent link: [github.com/ctb/2022-may-cfde-demo/DEMO.md](https://github.com/ctb/2022-may-cfde-demo/blob/main/DEMO.md) ## Contents: [toc] ## Using the portal to find and export file information (See [Jessica and Amanda's tutorial](https://hackmd.io/9EWhx5vYR3SDmd1Nl9rpyQ) for more detail!) ### Create a new personal collection Go to [the CFDE data portal at app.nih-cfde.org/](https://app.nih-cfde.org/). Log in (upper right). ![](https://i.imgur.com/YVXgMVK.png) Under your username (upper right), create a new personal collection. ![](https://i.imgur.com/D2eEXg2.png) For name, you can use "Tuesday demo" or anything else. You can leave description blank. ![](https://i.imgur.com/eNoJFep.png) ### Find some files Go back to [the CFDE data portal main page](https://app.nih-cfde.org/). Select "File" (upper left). ![](https://i.imgur.com/nIlZ2Jw.png) Use the facets on the left to select: * Common Fund Program: HMP * Project: "Longitudinal multi 'omics" * "has persistent ID" - True * Uncompressed size in Bytes - 50000000 to 60000000 (50 MB to 60 MB). ![](https://i.imgur.com/7SAZK0X.png) ![](https://i.imgur.com/9wOPGAY.png) With these selections, the first result should have "Filename" of `SRR5935743_1.fastq`. ![](https://i.imgur.com/ULbqD7W.png) ### Add files to your personal collection Click on the first result to get a detail view. Then add it to your personal collection: * scroll down to "Part of personal collection" and click "Link records." * Select your personal collection, click "Link" (upper right). ![](https://i.imgur.com/76nE4vc.png) ![](https://i.imgur.com/lWWBz0m.png) Click back in your browser, to get back to your filtered search. Repeat linking to a collection with the third result (Filename: `SRR5950647_1.fastq`). Add it to the same personal collection. ![](https://i.imgur.com/aOX8Gz7.png) :::info For today, here are the direct links to the two files we'll be using: * [file 1, `SRR5935743_1.fastq`](https://app.nih-cfde.org/chaise/record/#1/CFDE:file/nid=528892) * [file 2, `SRR5950647_1.fastq`](https://app.nih-cfde.org/chaise/record/#1/CFDE:file/nid=531342) ::: (Note, you could select any files you like, but these are small enough to work and I know what the results will be. So it's good for today's demo; I suggest trying new/different files as a Thursday exercise!) ### Export your personal collection Go to your collection, and select "export" and choose "NCPI manifest format." :::info **What is NCPI?** "NCPI" stands for "NIH Cloud Platform Interoperability", an effort by the NIH to convene around interoperation for cloud workbenches. ::: ### Examine the NCPI manifest file You should now have a CSV file in your Downloads that, when examined with a spreadsheet program, looks like this: ![](https://hackmd.io/_uploads/HkshxgdLq.png) The key piece of information in here is the `drs_uri` column, which provides a [Data Repository Service](https://ga4gh.github.io/data-repository-service-schemas/preview/release/drs-1.0.0/docs/) location from which to download the files. ## Connect to your AWS instance/on JupyterHub We've [installed some software for you on AWS](https://hackmd.io/rrjnYcZ3QemfuDpt82oomw?view), and you should receive a Web link to your AWS instance Web site in zoom chat (during today's demo, at least ;). ### Log in to JupyterHub You should see: ![](https://i.imgur.com/h0mXlZy.png) Use username `cfde`. (We'll give you the sekret password in Zoom chat.) You should now be at a JupyerHub console. ![](https://i.imgur.com/W3o8BlN.png) ### Open Jupyter notebook Go to the `demo/` folder and open `demo-walkthrough.ipynb` by clicking on it. ![](https://i.imgur.com/mWTz7DF.png) You can [also see a static version of the walkthrough](https://github.com/ctb/2022-may-cfde-demo/blob/main/demo-walkthrough.ipynb). ## For exercise at end of Jupyter Notebook: This will run through sample SRR5935743_1! ``` # run a sample against a database with sourmash gather # take exactly 5.000 minutes !sourmash gather SRR5935743_1.fastq.sig \ gtdb-rs207.genomic-reps.dna.k31.zip \ -o SRR5935743_1.gather.csv # run the metacoder taxonomy plot !./sourmash_gather_to_metacoder_plot.R \ SRR5935743_1.gather.csv \ SRR5935743_1.tax.png ``` ## Ideas for Thursday sessions During the Thursday co-working sessions, we will provide AWS instances with all the software pre-installed. Here are two ideas for things to do during that session: * re-do this analysis! * do the download and taxonomic analysis with new/different/bigger samples! * tackle other kinds of metagenome analyses - happy to chat about your interests! * do same analysis with larger (complete) gtdb database

Import from clipboard

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lost their connection.

Create a note from template

Create a note from template

Oops...
This template is not available.


Upgrade

All
  • All
  • Team
No template found.

Create custom template


Upgrade

Delete template

Do you really want to delete this template?

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Tutorials

Book Mode Tutorial

Slide Mode Tutorial

YAML Metadata

Contacts

Facebook

Twitter

Discord

Feedback

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions

Versions and GitHub Sync

Sign in to link this note to GitHub Learn more
This note is not linked with GitHub Learn more
 
Add badge Pull Push GitHub Link Settings
Upgrade now

Version named by    

More Less
  • Edit
  • Delete

Note content is identical to the latest version.
Compare with
    Choose a version
    No search result
    Version not found

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub

      Please sign in to GitHub and install the HackMD app on your GitHub repo. Learn more

       Sign in to GitHub

      HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Available push count

      Upgrade

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Upgrade

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully