Skip to content

Commit

Permalink
Describe subtree setup
Browse files Browse the repository at this point in the history
The previous merge commit and its attached commits were created by the
following command:

    git subtree add --prefix ingest/vendored https://github.com/nextstrain/ingest HEAD

Add a section in the README on how to use this directory in the future.
  • Loading branch information
victorlin committed Jul 12, 2023
1 parent e338b1c commit c8c94af
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,19 @@ snakemake --cores 4 -npf ingest/results/aligned.fasta ingest/results/sequences.f
Ingest will fetch genomes from NCBI's Entrez API and write to `./ingest/data/genbank.gb`.
As of mid 2023 there are around ~11k genomes and the full GenBank file is ~150Mb.

### `ingest/vendored`

This repository uses `git subtree` to manage copies of ingest scripts in `ingest/vendored`, from [nextstrain/ingest](https://github.com/nextstrain/ingest). To pull new changes from the central ingest repository, run:

```sh
git subtree pull --prefix ingest/vendored https://github.com/nextstrain/ingest HEAD
```

Changes should not be pushed using `git subtree push`.

1. For pathogen-specific changes, make them in this repository via a pull request.
2. For pathogen-agnostic changes, make them on [nextstrain/ingest](https://github.com/nextstrain/ingest) via pull request there, then use `git subtree pull` to add those changes to this repository.

## Phylo

* For a small ~500-tip dev tree: `snakemake --cores 4 -pf auspice/hbv_dev.json`
Expand Down

0 comments on commit c8c94af

Please sign in to comment.