-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add script to get organisms and genomes from ncbi api (#159) #160
Conversation
"taxon": genome_info["organism"]["organism_name"], | ||
"taxonomyId": genome_info["organism"]["tax_id"], | ||
"accession": genome_info["accession"], | ||
"isRef": (not (refseq_category is None)) and ("reference" in refseq_category), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a more appropriate way to derive isRef
?
assemblies_df = pd.DataFrame(requests.get(ASSEMBLIES_URL).json()["data"])[["ucscBrowser", "genBank", "refSeq"]] | ||
|
||
gen_bank_merge_df = genomes_source_df.merge(assemblies_df, how="left", left_on="pairedAccession", right_on="genBank") | ||
ref_seq_merge_df = genomes_source_df.merge(assemblies_df, how="left", left_on="accession", right_on="refSeq") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do pairedAccession
/genBank
and accession
/refSeq
actually correspond like this? Do we need to be using both pairs?
27112d0
to
eb0d485
Compare
No description provided.