Skip to content

Commit

Permalink
Merge pull request #21 from mskcc/Removing_NA
Browse files Browse the repository at this point in the history
Removing NA
  • Loading branch information
rhshah authored Jun 13, 2017
2 parents db50618 + b8aa768 commit 3c5a9dd
Show file tree
Hide file tree
Showing 9 changed files with 2,253 additions and 2,252 deletions.
4,474 changes: 2,237 additions & 2,237 deletions data/sample_output.maf

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions filter_blacklist_regions.R
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ if (!interactive()) {
rmsk[, Chromosome := gsub("chr", "", Chromosome)]

maf.out <- annotate_maf(maf, blacklist, rmsk)
if (outfile == 'stdout') { write.table(maf.out, stdout(), sep = "\t", col.names = T, row.names = F, quote = F)
} else { write.table(maf.out, outfile, sep = "\t", col.names = T, row.names = F, quote = F) }
if (outfile == 'stdout') { write.table(maf.out, stdout(), na="", sep = "\t", col.names = T, row.names = F, quote = F)
} else { write.table(maf.out, outfile, na="", sep = "\t", col.names = T, row.names = F, quote = F) }
}
4 changes: 2 additions & 2 deletions filter_cohort_normals.R
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@ if( ! interactive() ) {
}

maf.out <- annotate_maf(maf, fillout, normal.samples)
if (outfile == 'stdout') { write.table(maf.out, stdout(), sep = "\t", col.names = T, row.names = F, quote = F, na="")
} else { write.table(maf.out, outfile, sep = "\t", col.names = T, row.names = F, quote = F, na="") }
if (outfile == 'stdout') { write.table(maf.out, stdout(), na="", sep = "\t", col.names = T, row.names = F, quote = F, na="")
} else { write.table(maf.out, outfile, na="", sep = "\t", col.names = T, row.names = F, quote = F, na="") }
}
4 changes: 2 additions & 2 deletions filter_dmp.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ if (!interactive()) {
outfile <- args$outfile

maf.out <- annotate_maf(maf)
if (outfile == 'stdout') { write.table(maf.out, stdout(), sep = "\t", col.names = T, row.names = F, quote = F)
} else { write.table(maf.out, outfile, sep = "\t", col.names = T, row.names = F, quote = F) }
if (outfile == 'stdout') { write.table(maf.out, stdout(), na="", sep = "\t", col.names = T, row.names = F, quote = F)
} else { write.table(maf.out, outfile, na="", sep = "\t", col.names = T, row.names = F, quote = F) }
}
4 changes: 2 additions & 2 deletions filter_ffpe.R
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ if (!interactive()) {
} else if(args$filter) {
maf <- add_mut_tri(maf)
maf.out <- filter_artifacts(maf)
if (outfile == 'stdout') { write.table(maf.out, stdout(), sep = "\t", col.names = T, row.names = F, quote = F)
} else { write.table(maf.out, outfile, sep = "\t", col.names = T, row.names = F, quote = F) }
if (outfile == 'stdout') { write.table(maf.out, na="", stdout(), sep = "\t", col.names = T, row.names = F, quote = F)
} else { write.table(maf.out, outfile, na="", sep = "\t", col.names = T, row.names = F, quote = F) }
}
}
4 changes: 2 additions & 2 deletions filter_ffpe_pool.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@ if(fillout.format == 2){
}

maf.out <- annotate_maf(maf, parsed_fillout,alt.reads)
if (outfile == 'stdout') { write.table(maf.out, stdout(), sep = "\t", col.names = T, row.names = F, quote = F)
} else { write.table(maf.out, outfile, sep = "\t", col.names = T, row.names = F, quote = F) }
if (outfile == 'stdout') { write.table(maf.out, stdout(), na="", sep = "\t", col.names = T, row.names = F, quote = F)
} else { write.table(maf.out, outfile, na="", sep = "\t", col.names = T, row.names = F, quote = F) }
}
4 changes: 2 additions & 2 deletions filter_low_conf.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ if (!interactive()) {
outfile <- args$outfile

maf.out <- annotate_maf(maf)
if (outfile == 'stdout') { write.table(maf.out, stdout(), sep = "\t", col.names = T, row.names = F, quote = F)
} else { write.table(maf.out, outfile, sep = "\t", col.names = T, row.names = F, quote = F) }
if (outfile == 'stdout') { write.table(maf.out, stdout(), na="", sep = "\t", col.names = T, row.names = F, quote = F)
} else { write.table(maf.out, outfile, na="", sep = "\t", col.names = T, row.names = F, quote = F) }
}
4 changes: 2 additions & 2 deletions filter_normal_panel.R
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,6 @@ if( ! interactive() ) {
}

maf.out <- annotate_maf(maf, parsed_fillout, normal.count)
if (outfile == 'stdout') { write.table(maf.out, stdout(), sep = "\t", col.names = T, row.names = F, quote = F)
} else { write.table(maf.out, outfile, sep = "\t", col.names = T, row.names = F, quote = F) }
if (outfile == 'stdout') { write.table(maf.out, stdout(), na="", sep = "\t", col.names = T, row.names = F, quote = F)
} else { write.table(maf.out, outfile, na="", sep = "\t", col.names = T, row.names = F, quote = F) }
}
3 changes: 2 additions & 1 deletion tests/test_run_ngs-filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ def setup_module():
sys.exit(1)

def teardown_module():
shutil.rmtree(new_dir)
#shutil.rmtree(new_dir)
pass

def test_maf_fileSimilarity():
outFileMaf = os.path.join(new_dir, "sample_output.maf")
Expand Down

0 comments on commit 3c5a9dd

Please sign in to comment.