Skip to content

Commit

Permalink
Merge pull request #126 from CCBR/iss-122
Browse files Browse the repository at this point in the history
concatenate reference files without using excessive memory
  • Loading branch information
kelly-sovacool authored Nov 5, 2024
2 parents 0019fb5 + ba08780 commit e5360b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Update docker containers to set `$PYTHONPATH`. (#119, #125, @kelly-sovacool)
- Otherwise, this environment variable can be carried over and cause package conflicts when singularity is not run with `-C`.
- Fix `reconfig` to correctly replace variables in the config file. (#121, @kelly-sovacool)
- Prevent using excessive memory when copying reference files. (#126, @kelly-sovacool)

## CHARLIE 0.11.0

Expand Down
5 changes: 2 additions & 3 deletions workflow/rules/init.smk
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,8 @@ def append_files_in_list(flist, ofile):
with open(ofile, "w") as outfile:
for fname in flist:
with open(fname) as infile:
l = infile.read()
l = l.strip()
outfile.write("%s\n" % (l))
for line in infile:
outfile.write(line)
return True


Expand Down

0 comments on commit e5360b6

Please sign in to comment.