Skip to content

Commit

Permalink
use chr as primary sequence ID and seq_ID as secondary
Browse files Browse the repository at this point in the history
  • Loading branch information
oushujun committed Oct 8, 2023
1 parent d32cb0b commit a375c5e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bin/get_range.pl
Expand Up @@ -117,13 +117,13 @@
#34 4594 4561 34 291 258 4335 4594 260 0.962 + CTCAC 29..33, 4595..4599 TG,TG,CA,CA
#start end len lLTR_str lLTR_end lLTR_len rLTR_str rLTR_end rLTR_len similarity seqid chr direction TSD lTSD rTSD motif superfamily family age(ya)

$chr=$chr{"$element_start..$element_end"} if $genome==0;
# if ($genome==1 and !$chr) {
if ($genome==1) {
if (exists $chr{$seq_ID}){
$chr=$chr{"$element_start..$element_end"} if $genome==0 and !defined $chr;
if (!defined $chr or $chr =~ /^[NA|\.|\-|\?]$/i){
if ($genome==1 and exists $chr{$seq_ID}){
$chr=$chr{$seq_ID};
} else {
$chr=$seq_ID;
}
else {
die "No sequence ID is found in: \n$_\n";
}
}

Expand Down

0 comments on commit a375c5e

Please sign in to comment.