Add 5' truncation support and overlap file export - #25
Open
guillermo1996 wants to merge 10 commits into
Open
guillermo1996 wants to merge 10 commits into
guillermo1996 wants to merge 10 commits into
Conversation
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.
Summary
This PR extends the
truncateTxome()function to support truncation from the 5' end. It also introduces named wrapper functions for each ending site and adds the option to export a table of similar transcripts post truncation.Key Changes
txEndto the functiontruncateTxome(). This parameter controls the transcript termination from which the truncation starts. Defaults to "3prime" to keep the original truncation behaviour. Accepted values are:3,3',3p,3prime,3_prime,5,5',5p,5primeand5_prime.truncate3primeTxome()andtruncate5primeTxome().overlapFileto the functiontruncateTxome(). If provided, the function will export a CSV with two columnsquery_transcriptandsubject_transcript. These represent pairs of similar transcripts after truncation. Defaults toNULLto not export any file..suppressTxDbGenomeWarning()to silence a specific TxDb genome-info warning. Implemented to remove unnecessary warnings during the truncation pipeline.test-5prime-truncation.R) and transcript overlap export (test-overlap-file.R). Renamed previous 3' truncation tests totest-3prime-truncation.R.Usage example
Compatibility
Both new parameters default to values that replicate previous txcutr behaviour, making this PR fully backwards-compatible.
Other Notes