Skip to content

Commit 49ba266

Browse files
committed
Update to CM profiles and fixed a small bug with get_unique_features.pl
1 parent 6814ecb commit 49ba266

File tree

11 files changed

+21
-11
lines changed

11 files changed

+21
-11
lines changed
19.6 MB
Binary file not shown.
25.7 MB
Binary file not shown.
247 KB
Binary file not shown.
15.8 MB
Binary file not shown.
54.1 MB
Binary file not shown.
2.24 MB
Binary file not shown.
2.15 MB
Binary file not shown.

NGS-Utils/README.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,6 @@ This program is distributed under the Artistic License 2.0.
831831

832832
=head1 DATE
833833

834-
Feb-07-2018
834+
Feb-12-2018
835835

836836
=cut

NGS-Utils/annotate_final_ncRNAs.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
# (C) Kranti Konganti
44
# This program is distributed as Artistic License 2.0.
5-
# 11/15/2017
5+
# 02/12/2018
66
# Coordinate with lncRNApipe output to parse out and add Infernal annotation to final ncRNA transcripts.
77

88
# $LastChangedBy: konganti $ =~ m/.+?\:(.+)/;
9-
# $LastChangedDate: 2017-11-15 14:45:27 -0500 (Wed, 15 November 2017) $ =~ m/.+?\:(.+)/;
10-
# $LastChangedRevision: 2707 $ =~ m/.+?\:\s*(.*)\s*.*/;
9+
# $LastChangedDate: 2018-02-12 09:45:27 -0500 (Mon, 12 February 2018) $ =~ m/.+?\:(.+)/;
10+
# $LastChangedRevision: 2708 $ =~ m/.+?\:\s*(.*)\s*.*/;
1111
# $AUTHORFULLNAME = 'Kranti Konganti';
1212

1313
if [ -z "$FINAL_GTF" ] ||
@@ -26,7 +26,8 @@ grep noncoding $CPC_TXT_OUT | cut -f 1 | sort -n | uniq | while read unetrid; do
2626
contig_en=`grep -P "\ttranscript\t.+?\"$trid\".+" $FINAL_GTF | awk '{print $5}'`;
2727
trlen=`grep -P "\"$trid\"" $FINAL_GTF | grep -oP 'transcript_length \"\d+\"' | head -n 1 | perl -e '\$line = <>; if (\$line =~ m/.+?(\d+)/) {print \$1;}'`;
2828
hitlen=`grep -P "\s+$trid\s+" $CM_TXT_OUT | grep -P "\\s+\!\\s+" | sort -k15,15nr | uniq | head -n 1 | awk '{if(\$10=="+") print \$9-\$8; else print \$8-\$9;}'`;
29-
annot=`grep -P "\s+$trid\s+" $CM_TXT_OUT | grep -P "\\s+\!\\s+" | sort -k15,15nr | uniq | awk '{$1=""; sc=$15; for(i=3;i<=17;i++) $i=""; if (length($0) != 0) print $0, " | BitScore: ",sc}' | cut -d " " -f 2- | sed -e 's/\s\+/ /g' | head -n 1`;
29+
annot=`grep -P "\s+$trid\s+" $CM_TXT_OUT | grep -P "\\s+\!\\s+" | sort -k15,15nr | uniq | awk '{sc=$15; for(i=1;i<=17;i++); if (length($0) != 0) print "Match: ", $1, " | BitScore: ", sc}' | sed -e 's/\s\+/ /g' | head -n 1`;
30+
#annot=`grep -P "\s+$trid\s+" $CM_TXT_OUT | grep -P "\\s+\!\\s+" | sort -k15,15nr | uniq | awk '{$1=""; sc=$15; for(i=3;i<=17;i++) $i=""; if (length($0) != 0) print $0, " | BitScore: ",sc}' | cut -d " " -f 2- | sed -e 's/\s\+/ /g' | head -n 1`;
3031

3132
if [ -z "$trlen" ] || [ -z "$hitlen" ]; then
3233
calc_cov=0.0;

NGS-Utils/get_unique_features.pl

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
use Set::IntervalTree;
1111

1212
my ($LASTCHANGEDBY) = q$LastChangedBy: konganti $ =~ m/.+?\:(.+)/;
13-
my ($LASTCHANGEDDATE) = q$LastChangedDate: 2016-01-11 12:48:27 -0500 (Mon, 1 Jan 2016) $ =~ m/.+?\:(.+)/;
14-
my ($VERSION) = q$LastChangedRevision: 0605 $ =~ m/.+?(\d+)/;
13+
my ($LASTCHANGEDDATE) = q$LastChangedDate: 2018-02-12 10:48:27 -0500 (Mon, 12 Feb 2018) $ =~ m/.+?\:(.+)/;
14+
my ($VERSION) = q$LastChangedRevision: 0606 $ =~ m/.+?(\d+)/;
1515
my $AUTHORFULLNAME = 'Kranti Konganti';
1616

1717
my $io = IO::Routine->new();
@@ -199,6 +199,8 @@ sub compare_feat {
199199
while (my $line = <$s_fh>) {
200200

201201
chomp $line;
202+
next if ($line =~ m/^\W/);
203+
202204
my ($left_coords, $right_coords) = [];
203205

204206
$line = $io->strip_leading_and_trailing_spaces($line);
@@ -261,6 +263,8 @@ sub compare_feat {
261263
my $insert_line = 0;
262264
while (my $line = <$c_fh>) {
263265
chomp $line;
266+
next if ($line =~ m/^\W/);
267+
264268
$line = $io->strip_leading_and_trailing_spaces($line);
265269

266270
my @cols = split/\t/, $line;
@@ -653,6 +657,6 @@ =head1 COPYRIGHT
653657
654658
=head1 DATE
655659
656-
Jan-11-2016
660+
Feb-12-2018
657661
658662
=cut

0 commit comments

Comments
 (0)