Skip to content
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

Adapter matches in the middle of a read masked with N #787

Open
hmutpw opened this issue May 21, 2024 · 2 comments
Open

Adapter matches in the middle of a read masked with N #787

hmutpw opened this issue May 21, 2024 · 2 comments

Comments

@hmutpw
Copy link

hmutpw commented May 21, 2024

By default, the cutadapt removes the rest (after the adapter) of the sequences. If my sequences like:
ADAPTERmysequenceoneADAPTERmysequencetwoADAPTER
I will get mysequenceone in the output file by default.
When using -r, I will get mysequencetwo in the output.
However, I want to simultaneously keep mysequenceone and mysequencetwo in the output file, so I thought I could use --action mask to task the ADAPTERs with N first, then split this read into two pieces. However, the output looks like the following:
NNNNNNNmysequenceoneNNNNNNNNNNNNNNNNNNNNNNNNNNN
In the future version of cutadapt. Can it label the adapter sequence alone?

@marcelm
Copy link
Owner

marcelm commented May 22, 2024

You would probably have to use the --info-file option and postprocess the generated file.

Ideally, would you want Cutadapt be able to split a read into two?

@hmutpw
Copy link
Author

hmutpw commented May 22, 2024

You would probably have to use the --info-file option and postprocess the generated file.

Ideally, would you want Cutadapt be able to split a read into two?

Yes, the --infor-file is helpful to me.
If the Cutadapt can mask every base of adaptors in a read, I can split this read into two or three, or more sub-reads.
If Cutadapt can split this multi-adaptor read into several pieces, that would be better.
For long reads generated from the PacBio Revio platform, one sequenced read may be joined with multiple transcripts even after using separate tools from PacBio. if Cutadapt can split the joined read based on adaptor sequences, we can make full use of transcripts. But there is one thing to be noticed, different transcripts from the joined reads may from different gene loci and different strands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants