Open lchall08 opened 4 hours ago
Hi @lchall08,
I checked the error and it is wierd since count_A_percentage
is pre-assigned.
without (or prior to) Novel miRNA predictions
. Thank you, Arun
See attached the annotation report. This error is relatively new. I was previously able to run it successfully with a mouse dataset and this one is Rat so originally I thought it may be a bug in the library but nothing I can tell.
The code I used is: miRge3.0 -s input.txt -db miRBase -lib /research/miRge3_Lib -on rat -cpu 50 -tcf -bam -o output -dex -mdt 1432_samplesheet_1.csv -a TGGAATTCTCGGGTGCCAAGG -NX -nmir
input.txt is just a list of all the fastqs
Running mirge3 on Rat samples: Goes through all the steps until novel miRNAs prediction and throws this error and stops.
Traceback (most recent call last): File "/opt/conda/envs/mirge3/bin/miRge3.0", line 10, in
sys.exit(main())
^^^^^^
File "/opt/conda/envs/mirge3/lib/python3.12/site-packages/mirge/main.py", line 203, in main
predict_nmir(args, workDir, ref_db, base_names, pdUnmapped)
File "/opt/conda/envs/mirge3/lib/python3.12/site-packages/mirge/libs/novel_mir.py", line 424, in predict_nmir
generate_featureFiles(str(Path(outputdir2)), files, chrSeqDic, chrSeqLenDic, miRNAchrCoordivateDic, exactmiRNASeqDic)
File "/opt/conda/envs/mirge3/lib/python3.12/site-packages/mirge/libs/generate_featureFiles.py", line 226, in generate_featureFiles
features = clusterInstance.calculateFeature()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/mirge3/lib/python3.12/site-packages/mirge/classes/readCluster.py", line 320, in calculateFeature
neclueotideCountList = neclueotideCountList + [templateNucleotide, count_TemplateNucleotide_percentage, count_nonTemplateNucleotide_percentage, count_A_percentage, count_T_percentage, count_C_percentage, count_G_percentage]
^^^^^^^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'count_A_percentage' where it is not associated with a value