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

mRNA transfer fails if < or > are present in the positions #10

Open
Lenascha opened this issue Oct 28, 2021 · 0 comments
Open

mRNA transfer fails if < or > are present in the positions #10

Lenascha opened this issue Oct 28, 2021 · 0 comments

Comments

@Lenascha
Copy link

RATT does not transfer mRNA features if they include < or > in their positions.
This can be fixed by applying the following changes:
main.ratt.pl
739a740

          $ar[$i] =~ /(\d+)\.\.\>(\d+)/;

ratt_correction.pm

2122a2123,2157

elsif (/^(-\d+)..>(-\d+)$/) {
$a1=$1;
$b1=$2;

    if ($a1<1) {
          if ($b1<10) {
            $a1=$newPos;
          }
          else {
            $a1=($b1-9)
          }
          $newPos+=$newPos
    }
    if ($b1>$seqLength) {

          $b1=$seqLength;

    }
    if ($a1>$seqLength) {

          $a1=($b1-3)
    }

    if ($b1<1) {
          $b1=($a1+9);
          $newPos+=$newPos
    }

    if ($a1>$b1) {
          $tmp{$b1}="$b1..$a1"
    }
    else {
          $tmp{$a1}="$a1..$b1"
    }
  }
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

1 participant