Last active
January 31, 2020 20:52
-
-
Save NickSto/a71ea36d1bc50f75246c1803dcf712cb to your computer and use it in GitHub Desktop.
nCoV request
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
JSON: | |
curl 'https://www.ncbi.nlm.nih.gov/genomes/VirusVariation/vvsearch2/' --data 'wt=json&indent=true&q=*:*&sort=&facet=on&facet.limit=500&facet.sort=index&fl=id,*_s,*_ss,*_sw,*_txt,*_i,*_csv,*_dt,*_dr&sord=asc&start=0&rows=200&facet.field=%7B!ex=SeqType_s%7DSeqType_s&facet.field=%7B!ex=Isolation_csv%7DIsolation_csv&facet.field=%7B!ex=Flags_csv%7DFlags_csv&facet.query=%7B!ex=EnvSample_s%20key=EnvSample_only%7DEnvSample_s:*&facet.query=%7B!ex=EnvSample_s%20key=EnvSample_exclude%7DNOT%20EnvSample_s:*&facet.query=%7B!ex=LabHost_s%20key=LabHost_only%7DLabHost_s:*&facet.query=%7B!ex=LabHost_s%20key=LabHost_exclude%7DNOT%20LabHost_s:*&facet.query=%7B!ex=VacStrain_s%20key=VacStrain_only%7DVacStrain_s:*&facet.query=%7B!ex=VacStrain_s%20key=VacStrain_exclude%7DNOT%20VacStrain_s:*&facet.pivot=%7B!ex=Region_s,Country_s%7DRegion_s,Country_s&&fq=VirusLineageId_ss:(2697049)&fq=%7B!tag=SeqType_s%7DSeqType_s:(%22Nucleotide%22)' | |
CSV: | |
curl 'https://www.ncbi.nlm.nih.gov/genomes/VirusVariation/vvsearch2/?q=*:*&fq=VirusLineageId_ss:(2697049)&fq=%7B!tag=SeqType_s%7DSeqType_s:(%22Nucleotide%22)&cmd=download&sort=&dlfmt=csv&fl=Details:null,Accession:id,Release_Date:CreateDate_dt,Species:VirusSpecies_s,Genus:VirusGenus_s,Family:VirusFamily_s,Length:SLen_i,Nuc._Completeness:Flags_csv,Genotype:Serotype_s,Genome_Region:GenomeRegion_ss,Segment:Segment_s,Country:Country_s,Host:Host_s,Isolation_Source:Isolation_csv,Collection_Date:CollectionDate_s,BioSample:BioSample_s,GenBank_Title:Definition_s' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment