-
Notifications
You must be signed in to change notification settings - Fork 1
/
hbvProject.glue
56 lines (37 loc) · 1.76 KB
/
hbvProject.glue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
delete project hbv
create project hbv "A GLUE project for Hepatitis B virus (hbv)" --minVersion 1.1.107
run file glue/hbvSchemaExtensions.glue
project hbv
run file glue/hbvProjectSettings.glue
run file glue/hbvModules.glue
# M49 country extension
run file glue/m49_countries/populateM49All.glue
# NCBI refseqs -- taxa in the reference phylogeny, plus the RefSeq master reference and a numbering reference
import source sources/ncbi-refseqs
# NCBI outgroups -- closely related non HBV orthohepadnaviruses used to root the reference phylogeny
# Should get assigned species = null in genotyping
import source sources/ncbi-outgroups
# Non-human HBV strains from some great apes. Useful for calibrating the genotyping
# Should get assigned species = HBV in genotyping, but genotype = null
import source sources/ncbi-nonhuman
# rotate reference sequences to the standard numbering where necessary
run script glue/hbvRefseqsApplyRotations.js
# Populate refseq + outgroup metadata from GenBank XML
module hbvGenbankXmlPopulator populate -w "source.name in ('ncbi-refseqs', 'ncbi-outgroups')"
# Import unconstrained alignment
run file glue/hbvUnconstrainedAlignment.glue
# Create reference sequences
module hbvCladeStructureProcessor invoke-function createGlueReferenceSequences
# Alignment tree
module hbvCladeStructureProcessor invoke-function createAlignmentTree
# Features
run file glue/hbvFeatures.glue
# Feature locations on the numbering reference
run file glue/hbvFeatureLocations.glue
# inherit feature locations across other references
run script glue/hbvRefseqsInheritFeatureLocations.js
# import the reference phylogeny into the alignment tree
run file glue/hbvImportPhylogeny.glue
# Validate
validate
exit