Hi all,
I was wondering if it's possible to print out only a part of a line? The problem is I have an array with one motif in different variants, like this:
small_motif_a CGTCGCACAGC
small_motif_b CGTCGCACGAC
small_motif_c CGTCGCCCAGC
But in my output I only want the variant, without the nucleotide motif. Is that possible?
Like this: small_motif_a 811 821
(positions will be find by the script)
Cheers,
Anja
I was wondering if it's possible to print out only a part of a line? The problem is I have an array with one motif in different variants, like this:
small_motif_a CGTCGCACAGC
small_motif_b CGTCGCACGAC
small_motif_c CGTCGCCCAGC
But in my output I only want the variant, without the nucleotide motif. Is that possible?
Like this: small_motif_a 811 821
(positions will be find by the script)
Code:
$pos= $pos + length($`)+1;
$pos2= $pos + length($&)-1;
print OUTFILE "$_\t $pos\t $pos2\n";
$refseq= $';
$temp=1;
$found=$found+1;
Anja
Comment