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

[feature request] seqkit subseq with --circular option? #475

Open
xinehc opened this issue Jun 28, 2024 · 4 comments
Open

[feature request] seqkit subseq with --circular option? #475

xinehc opened this issue Jun 28, 2024 · 4 comments

Comments

@xinehc
Copy link

xinehc commented Jun 28, 2024

Hi Wei,

I wonder would it be possible to add a --circular option also to seqkit subset?

I am currently using seqkit subset to extract the flanking regions of some genes with bed files. Some genes are located near the boundary of circular genomes so the flanks get truncated. It would be nice to have this option so that I don't need to manually concatenate the sequences multiple times before annotating genes. It would be even nicer if seqkit subset could differentiate linear/circular genomes with a user specified list or bed. For example:

seq_a    linear
seq_b    circular
...
@shenwei356
Copy link
Owner

shenwei356 commented Jun 28, 2024

seqkit does not have a subset command.

seqkit subseq with --circular option

It sounds useful. But I'm busy writing a manuscript recently, might implement it later.

What's the organism the sequence belong to? Linear human and circular mitochondria? Adding a new column would break the format specification of BED/GTF. You can simply run with linear and circular sequences separately.

@xinehc
Copy link
Author

xinehc commented Jun 28, 2024

Thanks for the quick reply, I meant seqkit grep, sorry for the confusion.

I am working with a set of plasmid sequences which are short and circular in general, but there might be cases that the plasmid is incomplete and thereby linear.

@xinehc xinehc changed the title [feature request] seqkit subseq with --circular option? [feature request] seqkit grep with --circular option? Jun 28, 2024
@shenwei356
Copy link
Owner

grep does not handle flanking sequence. subseq?

@xinehc xinehc changed the title [feature request] seqkit grep with --circular option? [feature request] seqkit subseq with --circular option? Jun 28, 2024
@xinehc
Copy link
Author

xinehc commented Jun 28, 2024

You are right. I used both subseq and grep in a project and got confused.

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