-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from infinity-a11y/version_1.3.1
Version 1.4.0 Pull Request
- Loading branch information
Showing
22 changed files
with
1,362 additions
and
1,078 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/bin/bash | ||
|
||
cd execute | ||
source ~/miniconda3/etc/profile.d/conda.sh | ||
conda activate PhyloTrace | ||
unset R_HOME | ||
|
||
# Set base path | ||
base_path=$(Rscript -e "cat(readRDS('single_typing_df.rds')[,'wd'])") | ||
|
||
# reset progress | ||
echo 0 > "$base_path/execute/progress.txt" | ||
|
||
# Get variables | ||
scheme=$(Rscript -e "cat(readRDS('single_typing_df.rds')[,'scheme'])") | ||
alleles=$(Rscript -e "cat(readRDS('single_typing_df.rds')[,'alleles'])") | ||
|
||
# Remove the existing directory (if it exists) | ||
if [ -d "$base_path/execute/blat_single" ]; then | ||
rm -r "$base_path/execute/blat_single" | ||
fi | ||
|
||
mkdir "$base_path/execute/blat_single" | ||
|
||
# Directory name | ||
results="$base_path/execute/blat_single/results" | ||
|
||
# Remove the existing directory (if it exists) | ||
if [ -d "$results" ]; then | ||
rm -r "$results" | ||
fi | ||
|
||
# Create a new directory | ||
mkdir "$results" | ||
|
||
# Check assembly file and save in the execute folder | ||
Rscript "$base_path/execute/check_duplicate.R" | ||
wait | ||
genome="$base_path/execute/blat_single/assembly.fasta" | ||
|
||
# Run parallelized BLAT | ||
parallel --citation | ||
find "$alleles" -type f \( -name "*.fasta" -o -name "*.fa" -o -name "*.fna" \) | parallel pblat $genome {} "$results/{/.}.psl" | ||
|
||
# Start appending results | ||
echo 888888 >> "$base_path/execute/progress.txt" | ||
Rscript "$base_path/execute/single_typing.R" | ||
|
||
# Single typing finalized | ||
echo 999999 >> "$base_path/execute/progress.txt" |
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.