Skip to content
Snippets Groups Projects
Commit 8a206411 authored by Giovanna Ambrosini's avatar Giovanna Ambrosini
Browse files

modified: pwmlib_scan_seq

parent 7ac41f81
Branches
Tags v1.1.9
No related merge requests found
......@@ -156,12 +156,12 @@ fi
#
if [ "$pwm_format" = "logodds" ]
then
less $pwmlib_file | perl -ane 'chomp; if (/^>log-odds matrix (.*):/) {$header=$_; $id=$1; $id=~s/\s/_/g; $FNAME=$id; close(MAT); open (MAT, ">$FNAME.mat.tmp"); print MAT "$header\n";} else { print MAT "$_\n";}'
less $pwmlib_file | perl -ane 'chomp; if (/^>log-odds matrix (.*):/ or /^>(\S+)/) {$header=$_; $id=$1; $id=~s/\s/_/g; $FNAME=$id; close(MAT); open (MAT, ">$FNAME.mat.tmp"); print MAT "$header\n";} else { print MAT "$_\n";}'
fi
if [ "$pwm_format" = "lpm" ]
then
less $pwmlib_file | perl -ane 'chomp; if (/^>letter-probability matrix (.*):/) {$header=$_; $id=$1; $id=~s/\s/_/g; $FNAME=$id; close(MAT); open (MAT, ">$FNAME.mat.tmp"); print MAT "$header\n";} else { print MAT "$_\n";}'
less $pwmlib_file | perl -ane 'chomp; if (/^>letter-probability matrix (.*):/ or /^>(\S+)/) {$header=$_; $id=$1; $id=~s/\s/_/g; $FNAME=$id; close(MAT); open (MAT, ">$FNAME.mat.tmp"); print MAT "$header\n";} else { print MAT "$_\n";}'
fi
if [ "$pwm_format" = "meme" ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment