-
Notifications
You must be signed in to change notification settings - Fork 192
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
bc-pattern2: TypeError: object of type 'NoneType' has no len() #522
Comments
Just to check, you're trying to extract a UMI from just read2?
|
Yes I was trying to extract from read2 only. The reason is that umi-tools is part of a pipeline which I do not want to change the order of reads or its logic will break down. Anyway I know the swapping works fine. It was my misunderstanding about You might consider this as a feature request if it's not too much work to cater for. As I mentioned passing |
Ah, the docs are wrong in that case! I'd have to take a look back into the code to see whether supporting just extraction from read2 is a PITA. I suspect it should be OK and I've got no principle against it. You OK if we add this @IanSudbery? |
Fine by me, as long is its not too big a surgery. |
Just posting here as another instance where this isn't explicitly clear in the documentation and caused issues until I found this post. Would be a great feature to add. Thanks! |
The next release will include an option to extract barcodes from read 2 only (see #630) |
Hi there,
Shouldn't in the following
if(len(read1.seq) < len(self.pattern))
be asif(len(read1.seq) < len(self.pattern2))
or something to avoid this.This is fixed if I pass
--bc-pattern=X
UMI on read2:
read1:
read2
I have the following TypeError:
The text was updated successfully, but these errors were encountered: