This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/bash | |
| ## See also https://github.com/nextflow-io/nextflow/discussions/4308 | |
| ## cd to a parent directory for a Nextflow pipeline executation, i.e. contains .nextflow and work directories | |
| ## Find work directories essential to the last pipeline run, as absolute paths | |
| nextflow log last > /tmp/preserve_dirs.txt | |
| ## Find all work directories, as absolute paths |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Example of how to create a custom taxonomy database for mmseqs2, e.g. using GTDB SSU sequences from representative genomes | |
| module load miniconda3/1.1 | |
| BASE=my/data/dir/GTDB_rep_SSUs | |
| DATABASE_DIR=my/data/dir/GTDB_rep_SSUs/r220_rep_SSU_database | |
| mkdir -p $DATABASE_DIR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Combine all tsv files in a directory into a single excel spreadsheet | |
| library(openxlsx) | |
| file.path2 = function(..., fsep = .Platform$file.sep){ | |
| out <- gsub("//", "/", file.path(..., fsep = fsep)) | |
| } |