Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

which version of reference fasta file are suitable for reditools2.0? #12

Open
lizhan96 opened this issue Sep 7, 2022 · 0 comments
Open

Comments

@lizhan96
Copy link

lizhan96 commented Sep 7, 2022

dear developer

I ran reditools by the following code, and got error messages about the reference.

  1. ucsc reference file was supplying
    python /data_6t/lizhan/02.software/REDItools/reditools2.0-master/src/cineca/reditools.py -f T154.bam -r /data_6t/lizhan/database/genome/human/ucsc/hg38/hg38.fa -o ./edit4

Traceback (most recent call last):
File "/data_6t/lizhan/02.software/REDItools/reditools2.0-master/src/cineca/reditools.py", line 984, in analyze
chr_ref = reference_reader.fetch(read.reference_name)
File "pysam/libcfaidx.pyx", line 303, in pysam.libcfaidx.FastaFile.fetch
KeyError: "sequence 'KQ759759.1' not present"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/data_6t/lizhan/02.software/REDItools/reditools2.0-master/src/cineca/reditools.py", line 1374, in
analyze(options)
File "/data_6t/lizhan/02.software/REDItools/reditools2.0-master/src/cineca/reditools.py", line 986, in analyze
chr_ref = reference_reader.fetch("chr" + read.reference_name)
File "pysam/libcfaidx.pyx", line 303, in pysam.libcfaidx.FastaFile.fetch
KeyError: "sequence 'chrKQ759759.1' not present"

then I grep KQ759759.1 with the ref file

$grep KQ759759.1 /data_6t/lizhan/database/genome/human/ucsc/hg38/hg38.fa

chr11_KQ759759v1_fix

  1. ensemble reference file was supplying
    python /data_6t/lizhan/02.software/REDItools/reditools2.0-master/src/cineca/reditools.py -f T154.bam -r /data_6t/lizhan/database/reditools_index/Homo_sapiens.GRCh38.dna.primary_assembly.fa -o ./edit3

error message

Traceback (most recent call last):
File "/data_6t/lizhan/02.software/REDItools/reditools2.0-master/src/cineca/reditools.py", line 984, in analyze
chr_ref = reference_reader.fetch(read.reference_name)
File "pysam/libcfaidx.pyx", line 303, in pysam.libcfaidx.FastaFile.fetch
KeyError: "sequence 'KQ759759.1' not present"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/data_6t/lizhan/02.software/REDItools/reditools2.0-master/src/cineca/reditools.py", line 1374, in
analyze(options)
File "/data_6t/lizhan/02.software/REDItools/reditools2.0-master/src/cineca/reditools.py", line 986, in analyze
chr_ref = reference_reader.fetch("chr" + read.reference_name)
File "pysam/libcfaidx.pyx", line 303, in pysam.libcfaidx.FastaFile.fetch
KeyError: "sequence 'chrKQ759759.1' not present"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant