-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
311 changed files
with
15,253 additions
and
0 deletions.
There are no files selected for viewing
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
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
|
||
|
||
# Citations | ||
Ratnasingham, Sujeevan, and Paul D N Hebert. “bold: The Barcode of Life Data System (http://www.barcodinglife.org).” Molecular ecology notes vol. 7,3 (2007): 355-364. doi:10.1111/j.1471-8286.2007.01678.x |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
4,227 changes: 4,227 additions & 0 deletions
4,227
src/python/dpf-sanger-sequencing/mammalia_canada_combined.tsv
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[project] | ||
name = "dpf_sanger_sequencing" | ||
description="A library for interpreting sanger sequencing data" | ||
requires-python = ">=3.11" | ||
authors = [{name = "Danny Farrell", email = "[email protected]"}] | ||
dependencies = ["biopython", "requests", "sqlalchemy"] | ||
version="1.0.0" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
PROCESSID TAXON MARKER GENBANK_ACCESSION TRACEFILE | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
from pathlib import Path | ||
from dpf_sanger_sequencing.boldsystems import BoldSystemsAPI, Session, CombinedData | ||
from dpf_sanger_sequencing.boldsystems.bold_api_access import parse_tsv_weird_format | ||
import asyncio | ||
|
||
|
||
def store_combined_data_for_taxonomies(taxonomies: list[str]): | ||
api = BoldSystemsAPI() | ||
# api.get_data_package_data(Path("~/Downloads/bold_pub/BOLD_Public.05-May-2023.tsv").expanduser()) | ||
# print("x1?") | ||
# asyncio.run(api.get_combined_data_from_local_package_data()) | ||
# raise | ||
|
||
# for i, taxonomy in enumerate(taxonomies): | ||
# print(f"getting {i} / {len(taxonomies)} {taxonomy=}") | ||
# api.get_combined_data(dict(taxon=taxonomy)) | ||
session = Session() | ||
# rows = session.query(CombinedData).all() | ||
asyncio.run(api.download_all_trace_data(session)) | ||
|
||
# for row in rows: | ||
# print(row.processid) | ||
|
||
|
||
if __name__ == "__main__": | ||
taxonomies = [ | ||
"Acanthocephala", | ||
# "Acoelomorpha", # Missing data? | ||
"Annelida", | ||
"Arthropoda", | ||
"Brachiopoda", | ||
"Bryozoa", | ||
"Chaetognatha", | ||
"Chordata", | ||
"Cnidaria", | ||
"Ctenophora", | ||
"Cycliophora", | ||
"Echinodermata", | ||
"Entoprocta", | ||
"Gastrotricha", | ||
"Gnathostomulida", | ||
"Hemichordata", | ||
"Kinorhyncha", | ||
"Mollusca", | ||
"Nematoda", | ||
"Nematomorpha", | ||
"Nemertea", | ||
"Onychophora", | ||
"Phoronida", | ||
"Placozoa", | ||
"Platyhelminthes", | ||
"Porifera", | ||
"Priapulida", | ||
"Rhombozoa", | ||
"Rotifera", | ||
"Tardigrada", | ||
"Xenacoelomorpha", | ||
"Bryophyta", | ||
"Chlorophyta", | ||
"Lycopodiophyta", | ||
"Magnoliophyta", | ||
"Pinophyta", | ||
"Pteridophyta", | ||
"Ascomycota", | ||
"Basidiomycota", | ||
"Chytridiomycota", | ||
"Glomeromycota", | ||
"Myxomycota", | ||
"Zygomycota", | ||
"Chlorarachniophyta", | ||
"Ciliophora", | ||
"Heterokontophyta", | ||
"Pyrrophycophyta", | ||
"Rhodophyta", | ||
] | ||
store_combined_data_for_taxonomies(taxonomies) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
|
||
from dpf_sanger_sequencing.boldsystems.bold_api_access import BoldSystemsAPI | ||
|
||
api = BoldSystemsAPI() | ||
search_params = {"taxon": "Brachiopoda"} | ||
# api.get_combined_data(search_params, "tsv") | ||
api.get_trace_data(search_params) |
Empty file.
2 changes: 2 additions & 0 deletions
2
src/python/dpf-sanger-sequencing/src/dpf_sanger_sequencing/boldsystems/__init__.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from .models import Base as Base, CombinedData as CombinedData, TraceData as TraceData, UrlQueryData as UrlQueryData | ||
from .bold_api_access import BoldSystemsAPI as BoldSystemsAPI, Session as Session |
Oops, something went wrong.