Skip to content

Commit

Permalink
Update CI data
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobnissen committed Dec 3, 2024
1 parent 80bd1e6 commit 6e49d3e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/cli_vamb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
cache-dependency-path: '**/pyproject.toml'
- name: Download fixtures
run: |
wget https://www.dropbox.com/scl/fi/xzc0tro7oe6tfm3igygpj/ci_data.zip\?rlkey\=xuv6b5eoynfryp4fba1kfp5jm\&st\=rjb1xccw\&dl\=0 -O ci_data.zip
wget https://www.dropbox.com/scl/fi/nvct2aq3o2gdafouio8yg/ci_data.zip\?rlkey\=wg14lskwo1t4pusuk1tf12w9g\&st\=wc7hst48\&dl\=0 -O ci_data.zip
unzip -o ci_data.zip
- name: Install dependencies
run: |
Expand Down Expand Up @@ -56,9 +56,6 @@ jobs:
vamb taxometer --outdir outdir_taxometer --fasta catalogue_mock.fna.gz --abundance abundance_mock.npz --taxonomy taxonomy_mock.tsv -pe 10 -pt 10
ls -la outdir_taxometer
cat outdir_taxometer/log.txt
vamb taxometer --outdir outdir_taxometer_pred --fasta catalogue_mock.fna.gz --abundance abundance_mock.npz --taxonomy outdir_taxometer/results_taxometer.tsv -pe 10 -pt 10
ls -la outdir_taxometer_pred
cat outdir_taxometer/log.txt
- name: Run k-means reclustering
run: |
vamb recluster --outdir outdir_recluster --fasta catalogue_mock.fna.gz --abundance abundance_mock.npz --latent_path outdir_taxvamb/vaevae_latent.npz --clusters_path outdir_taxvamb/vaevae_clusters_split.tsv --markers markers_mock.npz --algorithm kmeans --minfasta 200000
Expand Down
2 changes: 1 addition & 1 deletion vamb/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def get_taxonomy(args: argparse.Namespace) -> Union[RefinedTaxonomy, UnrefinedTa
class TaxometerOptions:
@classmethod
def from_args(cls, args: argparse.Namespace):
tax = get_taxonomy(args.taxonomy)
tax = get_taxonomy(args)
if isinstance(tax, RefinedTaxonomy):
raise ValueError(
f'Attempted to run Taxometer to refine taxonomy at "{args.taxonomy}", '
Expand Down
3 changes: 1 addition & 2 deletions vamb/taxonomy.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,15 +202,14 @@ def write_as_tsv(self, file: IO[str], comp_metadata: CompositionMetaData):
"Refhash of comp_metadata and predicted taxonomy must match"
)
assert self.nseqs == comp_metadata.nseqs
print("contigs\tpredictions\tlengths\tscores", file=file)
print(PREDICTED_TAXONOMY_HEADER, file=file)
for i in range(self.nseqs):
tax = self.contig_taxonomies[i]
ranks_str = ";".join(tax.contig_taxonomy.ranks)
probs_str = ";".join([str(round(i, 5)) for i in tax.probs])
print(
comp_metadata.identifiers[i],
ranks_str,
comp_metadata.lengths[i],
probs_str,
file=file,
sep="\t",
Expand Down

0 comments on commit 6e49d3e

Please sign in to comment.