-
Notifications
You must be signed in to change notification settings - Fork 16
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
C3POa.py: AttributeError: 'tuple' object has no attribute 'append' #13
Comments
I took out the part where I make the list it's trying to append to a tuple, so hopefully this should be fixed now |
Thanks. The AttributeError is fixed with the updated
|
That's weird. Can you post a couple of reads from the |
Sure, see below:
|
I cat all raw fastq file from fastq_pass into one big fastq file for preprocessing. |
Can you post the output of |
It is |
Weird. Pull the new code and try again. I took out the hairpin check. I don't think this is going to fix it, but it's the only thing that's changed from my stable version. |
It still has the IndexError:
|
Can you change that portion of code to splitLine = line[1:].split('_')
print(splitLine)
root, seed = splitLine[0], splitLine[1] And rerun and post the printed lines? If I can't figure it out after that, I'll change the fastq parsing api to something more reliable |
|
What about when it gets to the index error? What's the last printed splitLine? splitLine = line[1:].split('_')
if len(splitLine) != 2:
print(splitLine)
root, seed = splitLine[0], splitLine[1] |
After change the code to:
It returns:
|
But what's the header that it prints right before it errors out? |
Tried:
It did return something weird:
|
Yeah that's a quality line, something's going wrong with the parser. Can you email me ([email protected]) so I can send you a modified version of C3POa.py? I'm going to add a dependency that I don't want to get pushed just yet. |
Sure. Many thanks. |
I've tried C3POa.py to process the preprocessed R2C2 fastq data:
python3 ./C3POa.py --reads splint_reads/R2C2_raw_reads.fastq --path ./consensus --matrix ./NUC.4.4.mat --config config --slencutoff 1000 --groupSize 1000 --numThreads 16
It returns the AttributeError(see below)
the input file (R2C2_raw_reads.fastq) is output file of
C3POa_preprocessing.py
, with the splint position in the header.config file is in tab format:
Is there anything wrong with my settings? How to fix it? Thank you.
PingPing
The text was updated successfully, but these errors were encountered: