marcelm / marcelm/cutadapt

Adapter matches in the middle of a read masked with N

Open
#787 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
587
Forks
144
Avg merge
2h 37m
Merged PRs (30d)
1

Description

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?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue’s example with the current --action mask behavior and inspect how adapter matches in the middle of a read are handled. The desired behavior is to retain both non-adapter segments while masking or otherwise labeling the adapter sequences, but the issue does not name files or tests, so the implementation scope needs clarification.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
bioinformatics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.