This file contains hidden or 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
| /-1 | |
| | | |
| /- /-|-- /- /-2364 | |
| | | | |
| | \-3375 | |
| | | |
| | /-2062 | |
| | /-| | |
| | | \- /-1882 |
This file contains hidden or 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
| # Required global libs | |
| import os | |
| import sys | |
| import time | |
| import numpy as np | |
| import pandas as pd | |
| import tqdm |
This file contains hidden or 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
| from bioregistry import normalize_prefix | |
| # Doesn't affect canonical prefixes | |
| assert 'ncbitaxon' == normalize_prefix('ncbitaxon') | |
| # This works for uppercased prefixes, like: | |
| assert 'chebi' == normalize_prefix("CHEBI") | |
| # This works for mixed case prefixes like | |
| assert 'fbbt' == normalize_prefix("FBbt") |
This file contains hidden or 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
| import pandas as pd | |
| import urllib.request | |
| import zipfile | |
| # We fetch the ncbi taxon list | |
| print('Beginning file download with urllib2...') |
This file contains hidden or 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
| import subprocess | |
| import shlex | |
| import zipfile | |
| import os | |
| import pandas as pd | |
| def gnps_download_results(job_id, output_folder): | |
| # This function download GNPS molecular networking job results locally | |
| # and detect if the job is classical or feature-based Molecular networking. | |
| # It then creates instances of the network and annotation tables. |
This file contains hidden or 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
| #!/bin/sh | |
| task status:completed end:today export | jq '.[].description' --raw-output | |