mesana has asked for the wisdom of the Perl Monks concerning the following question:
I need to generate a file with intervals of 200, considering that if the interval does not finish exactly in the second column, it should end in the second row. The same for each genes(name in the first column). for example...gene chrom start end NRAS chr1 115247085 115250671 NRAS chr1 115250775 115250813 NRAS chr1 115251152 115251275 NRAS chr1 115252190 115252349 NRAS chr1 115256421 115256599 NRAS chr1 115258671 115258798 NRAS chr1 115259279 115259515 TNNT2 chr1 201328142 201328383 TNNT2 chr1 201328751 201328791 TNNT2 chr1 201330407 201330497 TNNT2 chr1 201331041 201331155 TNNT2 chr1 201331238 201331243 TNNT2 chr1 201332423 201332534 TNNT2 chr1 201333426 201333503 TNNT2 chr1 201334319 201334435 TNNT2 chr1 201334738 201334798 TNNT2 chr1 201335966 201335999
NRAS chr1 115247085 115247285 NRAS chr1 115247287 115247487 NRAS chr1 115247489 115247689... ... NRAS chr1 115250400 115250600 (for example... NRAS chr1 115250602 115250906 NRAS chr1 115250908 115251108
anyone has any idea?
thank u a lot
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: continuuos intervals
by perldigious (Priest) on Aug 31, 2016 at 13:23 UTC | |
|
Re: continuuos intervals
by GotToBTru (Prior) on Aug 31, 2016 at 12:13 UTC | |
|
Re: continuuos intervals
by Anonymous Monk on Aug 31, 2016 at 11:23 UTC | |
|
Re: continuuos intervals
by mesana (Initiate) on Aug 31, 2016 at 14:06 UTC | |
by perldigious (Priest) on Aug 31, 2016 at 14:40 UTC |