bvaldebenitom / SoloTE

GNU General Public License v3.0
23 stars 6 forks source link

Error running SoloTE v 1.09: FileNotFoundError: [Errno 2] No such file or directory: 'TN_allcounts.txt' #35

Closed t1nnenissen closed 2 weeks ago

t1nnenissen commented 9 months ago

Hi there,

I have previously used this amazing tool and you have been a great help. I was really excited to realise the new features in the latest version that allows you to look at global levels of TE expression.

However, I ran into some difficulties running the new version. Please see below:

Screenshot 2023-10-04 at 12 33 46

Do you have any idea as to what might cause this?

Best, Tinne

bvaldebenitom commented 9 months ago

Hi @t1nnenissen !

Thank you for the kind words.

Would you mind sharing the output of samtools view unassigned_alignments_prol.bam|head and ls -lht /Users/k20047529/Desktop/soloTE_v1.09/SoloTE_1.09/prol/TN_SoloTE_temp ?

t1nnenissen commented 8 months ago

Hi @bvaldebenitom,

Thank you so much for getting back on this!

For some reason the command would not run together:

Screenshot 2023-10-09 at 09 34 41

However, it ran when I split into two:

Screenshot 2023-10-09 at 09 35 59 Screenshot 2023-10-09 at 09 35 04

It this hat you were looking for?

bvaldebenitom commented 8 months ago

Yes, that's it!

Can you try deleting the temporary folder and running again the pipeline? rm -Rf /Users/k20047529/Desktop/soloTE_v1.09/SoloTE_1.09/prol/TN_SoloTE_temp

python SoloTE_pipeline.py --threads 10 --bam unassigned_alignments_prol.bam --teannotation hg38_rmsk.bed --outputprefix TN --outputdir prol

Additionally, please share any messages from this new run. Also, share the output of head hg38_rmsk.bed samtools view -L hg38_rmsk.bed -c unassigned_alignments_prol.bam

t1nnenissen commented 8 months ago

After deleting the temporary folder and running the pipeline again I get this error:

Screenshot 2023-10-09 at 21 00 56

head hg38_rmsk.bed output:

Screenshot 2023-10-09 at 21 01 24

samtools view -L hg38_rmsk.bed -c unassigned_alignments_prol.bam output:

Screenshot 2023-10-09 at 21 01 43
bvaldebenitom commented 8 months ago

It looks like the BAM file is missing the CB tag. What is the output of the following command? samtools view -c -e 'exists([CB])' unassigned_alignments_prol.bam

If you generated the BAM file using STAR, you can also report the command used to further confirm this.

swainasish commented 4 months ago

Yes, it was due to the "CB" tag, also don't forget to delete the existing dir I followed these parameters in the STAR STAR \ --runThreadN 60 \ --soloType Droplet \ --soloFeatures Gene \ --soloCBwhitelist $whitelist_adap \ --soloCBlen 16 \ --soloUMIstart 17 \ --soloUMIlen 10 \ --outSAMtype BAM SortedByCoordinate \ --twopassMode Basic \ --readFilesCommand zcat \ --outSAMattributes NH HI AS nM CR CY UR UY CB \ --outFilterMultimapNmax 100 \ --winAnchorMultimapNmax 100 \ --outSAMmultNmax 1 \ --genomeDir $genome_dir \ --readFilesIn SRR*_R2.fastq.gz SRR*_R1.fastq.gz

github-actions[bot] commented 3 weeks ago

This issue is stale because it has been open for 10 days with no activity.

github-actions[bot] commented 2 weeks ago

This issue was closed because it has been inactive for 14 days since being marked as stale.