Skip to content

Commit

Permalink
fix referece-based clustering
Browse files Browse the repository at this point in the history
  • Loading branch information
davidealbanese committed Jun 24, 2015
1 parent edc99ad commit 0c2a236
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions micca/otu.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def clustering_ref(in_filename, ref_filename, clust_filename, rep_filename,
basepath = os.path.splitext(clust_filename)[0]

if format == 'fastq':
in_filename_fasta = basepath + "_FASTA_TMP.txt"
in_filename_fasta = basepath + "_FASTA_TMP.fasta"
SeqIO.convert(in_filename, "fastq", in_filename_fasta, "fasta")
else:
in_filename_fasta = in_filename
Expand All @@ -52,7 +52,7 @@ def clustering_ref(in_filename, ref_filename, clust_filename, rep_filename,

# run dnaclust
clust_tmp_handler = open(clust_tmp_filename, 'w')
cmd = ["dnaclust", in_filename, "-s", str(similarity), "--recruit-only",
cmd = ["dnaclust", in_filename_fasta, "-s", str(similarity), "--recruit-only",
"-l", "--predetermined-cluster-centers", ref_filename]
logger.info(' '.join(cmd))
proc = subprocess.Popen(cmd, stdout=clust_tmp_handler,
Expand Down

0 comments on commit 0c2a236

Please sign in to comment.