Skip to content

Commit

Permalink
Merge pull request #20 from matt-sd-watson/modify_rename
Browse files Browse the repository at this point in the history
Modify rename to retain all
  • Loading branch information
matt-sd-watson authored Feb 17, 2022
2 parents 1322f4a + a81eaf0 commit a7a2d78
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 646 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: outbreaker -v
- name: Run outbreaker test via CLI
shell: bash -l {0}
run: outbreaker -f data/tests/focal_seqs.fa -b data/tests/background_seqs.fa -r data/reference/ncov_reference.gb -o outbreaker_test -p test --snps-only --report
run: outbreaker -f data/tests/focal_seqs.fa -b data/tests/background_seqs.fa -r data/reference/ncov_reference.gb -o outbreaker_test -p test --snps-only --report --rename --names-csv data/tests/names.csv
- name: Run outbreaker test via config
shell: bash -l {0}
run: outbreaker -c data/test_config.yaml
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,15 @@
## Minor Version 0.6.2, 07-12-21
- ```outbreaker -v``` or ```outbreaker --version``` will now show the current version, then exit.
- In the summary report, the trees are automatically scaled with xlim to ensure that the tree labels are always visible, no matter the length of the branch
- In the summary report, a treescale was added for the trees that renders in either the bottom right or top right, depending on where the longest branches are. This was done to avoid having the treescale overlapping a tiplab.
- In the summary report, a treescale was added for the trees that renders in either the bottom right or top right, depending on where the longest branches are. This was done to avoid having the treescale overlapping a tip lab.


## Minor Version 0.6.3, 10-12-21
- ```--names-csv``` is now compatible with the summary report
- I```--filter``` and ```--names-csv``` are now compatible. Previously,, if any sequences were filtered and a names CSV was supplied, there would be an error.
- ```--filter``` and ```--names-csv``` are now compatible. Previously,, if any sequences were filtered and a names CSV was supplied, there would be an error.
- The reference ncov sequence that is compatible with MAFFT (augur align) is now included under ```/data/reference/``` as ```ncov_reference.gb```

## Minor Version 0.6.4, 17-02-22

-outbreaker now retains all sequences if ```--names-csv``` is used for renaming and not all sequences are contained in the CSV
- updates to the renaming behavior to be compatible with fastafurious v1.2.0 (additional warning messages)
4 changes: 4 additions & 0 deletions data/test_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ snps_only: True
prefix: test_config

report: True

rename: True

names_csv: tests/names.csv
11 changes: 11 additions & 0 deletions data/tests/names.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
original_name,new_name
Focal_1,Renamed_1
Focal_2,Renamed_2
Focal_3,Renamed_3
Background_1,Renamed_4
Background_2,Renamed_5
Background_4,Renamed_6
Background_5,Renamed_7
Background_6,Renamed_8
Random_1,Renamed_9
Random_2,Renamed_10
Binary file removed outbreaker/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion outbreaker/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
_program = "outbreaker"
__version__ = "0.6.3"
__version__ = "0.6.4"
641 changes: 0 additions & 641 deletions outbreaker/data/reference/reference.gb

This file was deleted.

2 changes: 1 addition & 1 deletion outbreaker/workflows/outbreaker.smk
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ rule rename_headers:
if config["names_csv"]:
shell("""
fastafurious rename -i {input.fasta} -s {input.names_csv} \
-1 original_name -2 new_name -o {output.renamed}
-1 original_name -2 new_name -o {output.renamed} -k
echo "\nrenamed multi-FASTA headers into: {output.renamed}\n"
""")
else:
Expand Down

0 comments on commit a7a2d78

Please sign in to comment.