Skip to content

Commit

Permalink
Update generateLphyScripts process to use ReadFasta instead of readNe…
Browse files Browse the repository at this point in the history
…xus #7
  • Loading branch information
glstott committed May 21, 2024
1 parent 015d46f commit bee2a12
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion nextflow/simulation.nf
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ process generateLphyScripts {
data {
// Specify options for reading the date information from file
options = {ageDirection="forward", ageRegex=".*_.*_(\d*\.\d+|\d+\.\d*)$"};
D = readNexus(file="!{seqs}", options=options);
D = ReadFasta(file="!{seqs}", options=options);
// Retrieve number of sites in alignment and taxa names
L = D.nchar();
Expand Down Expand Up @@ -234,4 +234,12 @@ workflow{
simulateBiasedSampling(simulateSequences.out, seed, prefix, p)

// Subsequence dataset using SRS, stratified, and LCUBE
n = 10
metadata = "metadata.csv"
runLCUBE(simulateSequences.out, seed, n, prefix, metadata)
runSimpleSampling(simulateSequences.out, seed, n, prefix, metadata)

// Generate LPHY scripts for BEAST 2
generateLphyScripts(simulateSequences.out, seed, prefix)
runBEAST(simulateSequences.out, seed, prefix)
}

0 comments on commit bee2a12

Please sign in to comment.