Skip to content

Commit

Permalink
Added optional command-line arg to skip saving the original data
Browse files Browse the repository at this point in the history
  • Loading branch information
halflings committed Nov 3, 2014
1 parent c2262a9 commit 30386f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bin/concoct
Expand Up @@ -41,10 +41,11 @@ def main(args):

logging.info('Performed PCA, resulted in %s dimensions' % transform_filter.shape[1])

Output.write_original_data(
joined,
args.length_threshold
)
if not args.no_original_data:
Output.write_original_data(
joined,
args.length_threshold
)

Output.write_pca(
transform_filter,
Expand Down
4 changes: 4 additions & 0 deletions concoct/parser.py
Expand Up @@ -75,6 +75,10 @@ def arguments():
help=("By default, the total coverage is added as a new column in the coverage "
"data matrix, independently of coverage normalization but previous to "
"log transformation. Use this tag to escape this behaviour."))
parser.add_argument('--no_original_data', default=False, action="store_true",
help=("By default the original data is saved to disk. For big datasets, "
"especially when a large k is used for compositional data, this file can become "
"very large. Use this tag if you don't want to save the original data."))
parser.add_argument('-o','--converge_out', default=False, action="store_true",
help=('Write convergence info to files.'))

Expand Down

0 comments on commit 30386f9

Please sign in to comment.