'analysis_barcodes.py': add options for truncating extracted index sequences before analysis - #1188
Merged
Merged
Conversation
… sequences. Adds new options --i1_length and --i2_length which can be used to specify the lengths that the I1 and I2 index sequences should be truncated to for analysis.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates the
bin/analyse_barcodes.pyutility to add new options--i1_lengthand--i2_length, which can be used to specify the lengths that the I1 and I2 index sequences extracted from the FASTQ read headers should be truncated to.For example: if the read header looks like:
then by default the extracted index sequence will be be
AAATCCAGAC+CACAACATTC(using the format<I1>+<I2>).The new options can be used to transform the sequences prior to analysis, for example
--i1_length=6would transform the sequence to:and
--i2_length=0would transform it to a single index sequence:This is intended to help with troubleshooting the sample demultiplexing post-FASTQ generation in specific cases where multiple projects appear in a single sequencer lane with different indexing schemes (for example to check whether expected indexes from the non-default indexing scheme are present in the "undetermined" reads).