Skip to content

Commit

Permalink
only execute pipeline if db has been updated or sqlite input specified
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Mar 25, 2020
1 parent 08738a9 commit b061577
Show file tree
Hide file tree
Showing 2 changed files with 254 additions and 225 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Phylogeography of Yersinia pestis
**Workflow:** NextFlow
**Database:** NCBImeta, sqlite3 (CLI)
**Alignment:** snippy
**Masking, etc.:** dustmasker, mummer, vcftools
**Masking, etc.:** dustmasker, mummer, vcftools
**Model Selection:** modeltest-ng

### Conda Environment
Expand Down Expand Up @@ -33,8 +33,7 @@ nextflow run pipeline.nf \
### Build NCBImeta database
```
nextflow run pipeline.nf \
--ncbimeta_create ncbimeta.yaml \
--skip_sqlite_import
--ncbimeta_create ncbimeta.yaml
```

### Annotate the Database
Expand All @@ -56,7 +55,7 @@ SELECT BioSampleAccession,
FROM BioSample
WHERE (BioSampleOrganism NOT LIKE '%Yersinia pestis%');
```
Add delimited headers to top of file
Add delimited headers to top of file (that match NCBImeta table BioSample)
```
DELIM="|"
sed -i "1i BioSampleAccession${DELIM}BioSampleBioProjectAccession${DELIM}BioSampleStrain${DELIM}BioSampleOrganism${DELIM}BioSampleSRAAccession${DELIM}BioSampleAccessionSecondary${DELIM}BioSampleCollectionDate${DELIM}BioSampleGeographicLocation${DELIM}BioSampleHost${DELIM}BioSampleComment" annot_biosample.txt
Expand Down
Loading

0 comments on commit b061577

Please sign in to comment.