Open humbleflowers opened 3 months ago
Hello developer, i got output when i run this command again. It looks like the step downloading genomes breaks and causes the error above. I got magnet output, i want to calculate abundance. Can you guide me how to estimate the abundance with magnet output file similar to what was done in bioarxiv manuscript?
Hello developer, i got output when i run this command again. It looks like the step downloading genomes breaks and causes the error above. I got magnet output, i want to calculate abundance. Can you guide me how to estimate the abundance with magnet output file similar to what was done in bioarxiv manuscript?
Could you please sent me the input relative_abundance.tsv so I can check the specific problem? From the error above it's most likely the NCBI database returned a corrupted/empty response the query.
2870764 GCF_019753875.1 Escherichia sp. NT45 NT45 Contig
2870765 GCF_019753835.1 Escherichia sp. NIC3-2 NIC3-2 Contig
2870766 GCF_019753755.1 Escherichia sp. NIC4-1 NIC4-1 Contig
2028568 GCF_002289525.1 Bacillus sp. 7705b 7705b Contig
2870767 GCF_019753705.1 Escherichia sp. NIC5-1 NIC5-1 Contig
1279005 GCF_000408845.1 Escherichia sp. KTE172 KTE172 Scaffold
1920032 Genome Not Found.
Traceback (most recent call last):
File "/home/vinay.kusuma/pfs-bix-prod/lemur/magnet/magnet.py", line 353, in <module>
main()
File "/home/vinay.kusuma/pfs-bix-prod/lemur/magnet/magnet.py", line 350, in main
run_magnet(args)
File "/home/vinay.kusuma/pfs-bix-prod/lemur/magnet/magnet.py", line 215, in run_magnet
reference_metadata = prepare_reference_genomes(valid_taxids, working_directory, ncbi_taxa_db, accession_flag=accession_flag, mag_flag=mag_flag)
File "/home/vinay.kusuma/pfs-bix-prod/lemur/magnet/utils/reference_finder.py", line 173, in prepare_reference_genomes
download_result.append(download_reference_genome(taxid, working_dir, mag_flag=mag_flag))
File "/home/vinay.kusuma/pfs-bix-prod/lemur/magnet/utils/reference_finder.py", line 80, in download_reference_genome
res = run_datasets_summary(taxid, [], assembly_level, mag_flag=mag_flag)
File "/home/vinay.kusuma/pfs-bix-prod/lemur/magnet/utils/reference_finder.py", line 35, in run_datasets_summary
return json.loads(grepOut.stdout.strip())
File "/home/ubuntu/miniforge3/envs/vk_tools/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/home/ubuntu/miniforge3/envs/vk_tools/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/home/ubuntu/miniforge3/envs/vk_tools/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
[Sat Aug 24 14:44:52 2024]
Error in rule magnet:
jobid: 36
input: /home/vinay.kusuma/pfs-bix-prod/ont_zymo_samples/zymo_hmw_r104.fastq.gz, /home/vinay.kusuma/pfs-bix-prod/ont_wwm_pipeline/ONT_ZYMO_WWM_benchmark/zymo_hmw_r104/lemur
output: /home/vinay.kusuma/pfs-bix-prod/ont_wwm_pipeline/ONT_ZYMO_WWM_benchmark/zymo_hmw_r104/magnet
shell:
python /home/vinay.kusuma/pfs-bix-prod/lemur/magnet/magnet.py -i /home/vinay.kusuma/pfs-bix-prod/ont_zymo_samples/zymo_hmw_r104.fastq.gz -m ont -o /home/vinay.kusuma/pfs-bix-prod/ont_wwm_pipeline/ONT_ZYMO_WWM_benchmark/zymo_hmw_r104/magnet --threads 30 -c /home/vinay.kusuma/pfs-bix-prod/ont_wwm_pipeline/ONT_ZYMO_WWM_benchmark/zymo_hmw_r104/lemur/relative_abundance.tsv
(one of the commands exited with non-zero exit code; note that snakemake uses bash strict mode!)
Hello @beleafs Please take a look relative_abundance.txt
i added a .txt file here as github doesnt accept .tsv
Thank you.
I run this command with the new version of magnet
python magnet.py -i ZYMO_D6311_14.nanoq.10.1000.fastq.gz -m ont -o ZYMO_D6311_14.magnet_1 --threads 30 -c relative_abundance.tsv
i get this error