Skip to content

Commit

Permalink
Refined default ChimFilter configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
brguez committed Nov 17, 2015
1 parent e988228 commit 752b93f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions ChimPipe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ cat <<help
Filters:
--total-support <INTEGER> Minimum number of total supporting evidences (spanning reads + consistent paired-ends). Default 4.
--spanning-reads <INTEGER> Minimum number of junction spanning reads. Default 1.
--consistent-pairs <INTEGER> Minimum number of consistent paired-ends. Default 0.
--consistent-pairs <INTEGER> Minimum number of consistent paired-ends. Default 2.
--total-support-novel-ss <INTEGER> Minimum number of total supporting evidence if novel splice-sites. Default 6.
--spanning-reads-novel-ss <INTEGER> Minimum number of junction spanning reads if novel splice-sites. Default 3.
--consistent-pairs-novel-ss <INTEGER> Minimum number of consistent paired-ends if novel splice-sites. Default 3.
--total-support-novel-ss <INTEGER> Minimum number of total supporting evidence if novel splice-sites. Default 8.
--spanning-reads-novel-ss <INTEGER> Minimum number of junction spanning reads if novel splice-sites. Default 2.
--consistent-pairs-novel-ss <INTEGER> Minimum number of consistent paired-ends if novel splice-sites. Default 4.
--perc-staggered <PERCENTAGE> Minimum percentage of staggered reads. Default 0 (not enabled).
--perc-multimappings <PERCENTAGE> Maximum percentage of multimapped spanning reads. Default 100 (not enabled).
Expand Down Expand Up @@ -899,7 +899,7 @@ fi
# Minimum number of consistent paired-ends
if [[ "$minNbConsistentPE" == "" ]];
then
minNbConsistentPE=0;
minNbConsistentPE=2;
else
if [[ ! "$minNbConsistentPE" =~ ^[0-9]+$ ]];
then
Expand All @@ -912,7 +912,7 @@ fi
# Minimum number of total supporting evidences for novel splice-sites (spanning reads + discordant PE)
if [[ "$minNbTotalNovelSS" == "" ]];
then
minNbTotalNovelSS=6;
minNbTotalNovelSS=8;
else
if [[ ! "$minNbTotalNovelSS" =~ ^[0-9]+$ ]];
then
Expand All @@ -925,7 +925,7 @@ fi
# Minimum number of spanning reads for novel splice-sites
if [[ "$minNbSpanningNovelSS" == "" ]];
then
minNbSpanningNovelSS=3;
minNbSpanningNovelSS=2;
else
if [[ ! "$minNbSpanningNovelSS" =~ ^[0-9]+$ ]];
then
Expand All @@ -938,7 +938,7 @@ fi
# Minimum number of consistent paired-ends for novel splice-sites
if [[ "$minNbConsistentPENovelSS" == "" ]];
then
minNbConsistentPENovelSS=3;
minNbConsistentPENovelSS=4;
else
if [[ ! "$minNbConsistentPENovelSS" =~ ^[0-9]+$ ]];
then
Expand Down
8 changes: 4 additions & 4 deletions src/awk/ChimFilter.awk
Original file line number Diff line number Diff line change
Expand Up @@ -58,26 +58,26 @@ BEGIN{
# A.3. Minimum number of consistent paired-ends
if (minNbConsistentPE == "")
{
minNbConsistentPE=0;
minNbConsistentPE=2;
}

# B) Junction not in exon boundaries (at least one novel splice-sites)
# B.1. Minimum number of total supporting evidences (spanning reads + consistent PE)
if (minNbTotalNovelSS == "")
{
minNbTotalNovelSS=6;
minNbTotalNovelSS=8;
}

# B.2. Minimum number of spanning reads
if (minNbSpanningNovelSS == "")
{
minNbSpanningNovelSS=3;
minNbSpanningNovelSS=2;
}

# B.3. Minimum number of consistent paired-ends
if (minNbConsistentPENovelSS == "")
{
minNbConsistentPENovelSS=3;
minNbConsistentPENovelSS=4;
}

### 2. Filters based on percentages
Expand Down

0 comments on commit 752b93f

Please sign in to comment.