bcgsc / NanoSim

Nanopore sequence read simulator
Other
243 stars 57 forks source link

KeyError: "tag 'MD' not present" #225

Open mochew opened 1 month ago

mochew commented 1 month ago

Hi there,

I encountered a KeyError exception when running NanoSim. Specifically, the error report KeyError: "tag 'cs' not present". This error occurred during the execution of the script when trying to analyze reads and match error models. Below is the full traceback from the log. image Could you please help me resolve this issue? Thank you for your assistance!

lcoombe commented 1 month ago

Hi @mochew,

Could you provide us with a bit more information, including:

Thank you for your interest in NanoSim! Lauren

mochew commented 1 month ago

Thank you for your response. The commands I used to install NanoSim are as follows:

(1)git clone https://github.com/bcgsc/NanoSim.git (2)conda create --name nanosim python=3.7 (3)conda activate nanosim (4)conda install --file requirements.txt -c conda-forge -c bioconda (5)conda install regex The commands I used to run NanoSim are as follows:

nohup python read_analysis.py genome -i /newhome/Public_data/TRs/DeepTR-source-data/HG001/Nanopore/HG001_Circulomics_Guppy_4.2.2.fastq.gz -ga /home/wuyingfu/complete_sequence/ref_sequence/GCA_009914755.4_T2T-CHM13v2.0_genomic.fna_exten_TR_intrv_align/HG001/HG001_Nanopore_aln_sorted.bam -o /home/wuyingfu/complete_sequence/Nanosim/Out_put/ -t 40

/home/wuyingfu/complete_sequence/Nanosim/log/analysis_HG001_reads.log 2>&1 &

The library versions in the NanoSim environment are shown in the figure below:

image

image

If you need any further information, please let me know. I look forward to your response

mochew commented 1 month ago

In addition, the minimap2 I installed is as follows: image

lcoombe commented 1 month ago

Hi @mochew,

A couple suggestions:

mochew commented 1 month ago

Thank you very much for your response. I will try running NanoSim again based on your suggestions.