Last active
March 24, 2023 11:43
-
-
Save ag1805x/2b7dfe390ff43981f759f177817dd8d5 to your computer and use it in GitHub Desktop.
Extract GSM id for a SRR id.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Using NCBI's efetch to retrive GSM id (sample id) from a given SRR id(run id) | |
efetch -db sra -id SRR2453355 -format xml | xmllint --xpath "EXPERIMENT_PACKAGE_SET/EXPERIMENT_PACKAGE/EXPERIMENT/@alias" - | cut -d \" -f2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment