Skip to content

Commit 222f8da

Browse files
committed
Update README
1 parent e263363 commit 222f8da

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

README.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,26 @@
11
# seqBackup
22

3-
`python -m unittests` to run tests.
3+
Logic for parsing Illumina headers and folders as well as for archiving reads.
44

5-
## TODO:
5+
## Dev
66

7-
-make backup_illumina.py able to take relative paths for --forward-reads argument
7+
```
8+
git clone https://github.com/PennChopMicrobiomeProgram/seqBackup.git
9+
cd seqBackup/
10+
python -m venv env
11+
source env/bin/activate
12+
pip install -e .
13+
pip install black pytest
14+
```
15+
16+
Before commits, make sure everything is well formatted and working:
17+
18+
```
19+
black .
20+
pytest test/
21+
git commit ...
22+
```
23+
24+
### Adding a new machine type
25+
26+
To add a new machine type, add the new machine code to the `MACHINE_TYPES` map in `seqBackuplib/illumina.py`. In some cases, you may have to add machine specific parsing in `_parse_header` or `_parse_folder`. In `test/test_illumina.py`, we have a mechanism for requiring tests for each supported machine type. Add the new machine type to the `machine_fixtures` map and then create the fixture that it points to in `test/conftest.py`. Follow the pattern laid out by other fixtures and try to make the test data as realistic as possible.

0 commit comments

Comments
 (0)