Skip to content

Commit

Permalink
Merge pull request #236 from linsalrob/master
Browse files Browse the repository at this point in the history
Always add a number to the contigs in cut_up_fasta.py
  • Loading branch information
alneberg committed Dec 18, 2018
2 parents 2638e0f + 8605514 commit c7d69a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/cut_up_fasta.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ def cut_up_fasta(fastfiles, chunk_size, overlap, merge_last, bedoutfile):
file=bedoutfile_fh)
i = i + 1
else:
print(">%s\n%s" % (record.id, record.seq))
print(">%s.0\n%s" % (record.id, record.seq))
if bedoutfile:
print("{0}\t0\t{1}\t{0}".format(record.id, len(record.seq)),
print("{0}\t0\t{1}\t{0}.0".format(record.id, len(record.seq)),
file=bedoutfile_fh)

if bedoutfile:
Expand Down

0 comments on commit c7d69a6

Please sign in to comment.