Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

tabix multipule regions with delimited between output regions #30

Closed
ekushele opened this issue Jul 15, 2020 · 1 comment
Closed

tabix multipule regions with delimited between output regions #30

ekushele opened this issue Jul 15, 2020 · 1 comment

Comments

@ekushele
Copy link

Hi,

Say I have a bed file, file.bed, and I want to retrieve multipule regions.
file.bed:

chr1    10468   10469   
chr1    10470   10471   
chr1    10483   10484   
chr1    10488   10489   
chr1    10492   10493   
chr1    10496   10497 

running tabix file.bed chr1:10468-10490 chr1:10478-10490 chr1:10496-10497 gives me all the rows that matches region in the file.bed:

chr1    10468   10469  
chr1    10470   10471  
chr1    10483   10484  
chr1    10488   10489  
chr1    10483   10484  
chr1    10488   10489 
chr1    10496   10497 

Can I have an option to separate between the results, i.e. to define which rows came from each region? Something like:

chr1    10468   10469  
chr1    10470   10471  
chr1    10483   10484  
chr1    10488   10489
  
chr1    10483   10484  
chr1    10488   10489 

chr1    10496   10497 
@valeriuo
Copy link

Duplicate of samtools/htslib#1107

@valeriuo valeriuo marked this as a duplicate of samtools/htslib#1107 Jul 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants