Round-trip reading, modifying, and writing!
---
Sample sheets will always be written in a deterministc manner which will help with hashing changes.
You can perform a round-trip read, modify, write (example below) or create a sample sheet _de novo_ by instantiating `SampleSheet` and `Sample` classes and modifying them directly as shown in the [README](https://github.com/clintval/sample-sheet#sample-sheet-creation)
python
infile = 'https://raw.githubusercontent.com/clintval/sample-sheet/master/tests/resources/paired-end-single-index.csv'
sample_sheet = SampleSheet(infile)
with open('test.csv', 'w') as handle:
sample_sheet.write(handle)
bash
❯ head <( https://raw.githubusercontent.com/clintval/sample-sheet/master/tests/resources/paired-end-single-index.csv )
[Header],,,,,,,,
IEM1FileVersion,4,,,,,,,
Investigator Name,jdoe,,,,,,,
Experiment Name,exp001,,,,,,,
Date,11/16/2017,,,,,,,
Workflow,SureSelectXT,,,,,,,
Application,NextSeq FASTQ Only,,,,,,,
Assay,SureSelectXT,,,,,,,
Description,A description of this flow cell,,,,,,,
Chemistry,Default,,,,,,,
bash
❯ head test.csv
[Header],,,,,,,,
IEM1FileVersion,4,,,,,,,
Investigator Name,jdoe,,,,,,,
Experiment Name,exp001,,,,,,,
Date,11/16/2017,,,,,,,
Workflow,SureSelectXT,,,,,,,
Application,NextSeq FASTQ Only,,,,,,,
Assay,SureSelectXT,,,,,,,
Description,A description of this flow cell,,,,,,,
Chemistry,Default,,,,,,,
Test Coverage CI
---
Code test coverage is now calculated on all branches and PRs.
Goal for this project will be sustaining at least 95% coverage with a target of 100%.
https://codecov.io/gh/clintval/sample-sheet