Skip to content

Commit

Permalink
Merge pull request #630 from CGATOxford/ts_add_option_to_extract_from…
Browse files Browse the repository at this point in the history
…_read2_only

adds option to extract barcode from read2 only
  • Loading branch information
IanSudbery authored Mar 13, 2024
2 parents cac1f00 + c229bd9 commit 156e285
Show file tree
Hide file tree
Showing 9 changed files with 80,051 additions and 31 deletions.
5 changes: 5 additions & 0 deletions doc/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,8 @@
- **Can I use whitelist without UMIs?**

Strickly speaking, yes, but only with `--extract-method string`. If you use `--extract-method regex` and don't provide both a UMI and Cell barcode position in the regex, you'll get an error.

 
- **Can I extract barcodes from just read2?**

Yes, you can use --read2-only with `umi_tools extract` & `whitelist`. Previously, we had been recommending users achieve this by simply swapping the read1 and read2 input files around. That's still a viable approach.
1 change: 1 addition & 0 deletions tests/extract_help
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Options:
--3prime barcode is on 3' end of read.
--read2-in=READ2_IN
file name for read pairs
--read2-only Only extract from read2
--filtered-out=FILTERED_OUT
Write out reads not matching regex pattern to this
file
Expand Down
Loading

0 comments on commit 156e285

Please sign in to comment.