-
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.
- Loading branch information
1 parent
53213c8
commit e141e9e
Showing
8 changed files
with
122 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
for ((i=0; i<=999; i++)) | ||
do | ||
modified_file="./sam/trisomy/${i}_sample_modified.sam" | ||
original_file="./sam/sample_${i}.sam" | ||
|
||
cat "$modified_file" >> "$original_file" | ||
echo "Appended $modified_file to $original_file" | ||
done |
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,10 @@ | ||
#!/bin/bash | ||
|
||
for ((i=0; i<=999; i++)) | ||
do | ||
modified_file="./sam-ms/trisomy-ms/${i}_sample_modified.sam" | ||
original_file="./sam-ms/sample_${i}.sam" | ||
|
||
cat "$modified_file" >> "$original_file" | ||
echo "Appended $modified_file to $original_file" | ||
done |
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,11 @@ | ||
#!/bin/bash | ||
|
||
for ((i=0; i<=999; i++)) | ||
do | ||
input_file="./sam/trisomy/${i}_sample.sam" | ||
output_file="./sam/trisomy/${i}_sample_modified.sam" | ||
|
||
sed '1,3d' "$input_file" > "$output_file" | ||
|
||
echo "Processed $input_file, saved as $output_file" | ||
done |
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,11 @@ | ||
#!/bin/bash | ||
|
||
for ((i=0; i<=999; i++)) | ||
do | ||
input_file="./sam-ms/trisomy-ms/${i}_sample.sam" | ||
output_file="./sam-ms/trisomy-ms/${i}_sample_modified.sam" | ||
|
||
sed '1,3d' "$input_file" > "$output_file" | ||
|
||
echo "Processed $input_file, saved as $output_file" | ||
done |
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,17 @@ | ||
#!/bin/bash | ||
#illumina test examples | ||
art=../art_illumina | ||
f_value="f_value_ART-Random.txt" | ||
> $f_value | ||
|
||
for ((i=0; i<=1999; i++)) | ||
do | ||
output_file="sample_${i}" | ||
|
||
# Generate a random floating point number within the range of [0.1, 0.5] | ||
random_float=$(awk -v min=0.1 -v max=0.5 'BEGIN{srand(); print min+rand()*(max-min)}') | ||
|
||
echo $random_float >> $f_value | ||
|
||
$art -ss HS25 -sam -i ./ref_ART-Random.fa -l 35 -p -f $random_float -m 100 -s 5 -M -ir 0.005 -ir2 0.005 -dr 0.005 -dr2 0.005 -na -o "./sam/${output_file}" | ||
done |
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,17 @@ | ||
#!/bin/bash | ||
#illumina test examples | ||
art=../art_illumina | ||
f_value="f_value_MS+Seq-Gen+ART_sample1.txt" | ||
> $f_value | ||
|
||
for ((i=0; i<=1999; i++)) | ||
do | ||
output_file="sample_${i}" | ||
|
||
# Generate a random floating point number within the range of [0.1, 0.5] | ||
random_float=$(awk -v min=0.1 -v max=0.5 'BEGIN{srand(); print min+rand()*(max-min)}') | ||
|
||
echo $random_float >> $f_value | ||
|
||
$art -ss HS25 -sam -i ./ref_MS+Seq-Gen+ART_sample1.fa -l 35 -p -f $random_float -m 100 -s 5 -M -ir 0.005 -ir2 0.005 -dr 0.005 -dr2 0.005 -na -o "./sam-ms/${output_file}" | ||
done |
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,23 @@ | ||
#!/bin/bash | ||
#illumina test examples | ||
art=../art_illumina | ||
for ((i=0; i<=333; i++)) | ||
do | ||
output_file="${i}_sample" | ||
|
||
$art -ss HS25 -sam -i ./ref_MS+Seq-Gen+ART_sample1_chr13.fa -l 35 -p -f 0.2 -m 100 -s 5 -M -ir 0.005 -ir2 0.005 -dr 0.005 -dr2 0.005 -na -o "./sam-ms/trisomy-ms/${output_file}" | ||
done | ||
|
||
for ((i=334; i<=666; i++)) | ||
do | ||
output_file="${i}_sample" | ||
|
||
$art -ss HS25 -sam -i ./ref_MS+Seq-Gen+ART_sample1_chr18.fa -l 35 -p -f 0.2 -m 100 -s 5 -M -ir 0.005 -ir2 0.005 -dr 0.005 -dr2 0.005 -na -o "./sam-ms/trisomy-ms/${output_file}" | ||
done | ||
|
||
for ((i=667; i<=999; i++)) | ||
do | ||
output_file="${i}_sample" | ||
|
||
$art -ss HS25 -sam -i ./ref_MS+Seq-Gen+ART_sample1_chr21.fa -l 35 -p -f 0.2 -m 100 -s 5 -M -ir 0.005 -ir2 0.005 -dr 0.005 -dr2 0.005 -na -o "./sam-ms/trisomy-ms/${output_file}" | ||
done |
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,23 @@ | ||
#!/bin/bash | ||
#illumina test examples | ||
art=../art_illumina | ||
for ((i=0; i<=333; i++)) | ||
do | ||
output_file="${i}_sample" | ||
|
||
$art -ss HS25 -sam -i ./ref_ART-Random_chr13.fa -l 35 -p -f 0.2 -m 100 -s 5 -M -ir 0.005 -ir2 0.005 -dr 0.005 -dr2 0.005 -na -o "./sam/trisomy/${output_file}" | ||
done | ||
|
||
for ((i=334; i<=666; i++)) | ||
do | ||
output_file="${i}_sample" | ||
|
||
$art -ss HS25 -sam -i ./ref_ART-Random_chr18.fa -l 35 -p -f 0.2 -m 100 -s 5 -M -ir 0.005 -ir2 0.005 -dr 0.005 -dr2 0.005 -na -o "./sam/trisomy/${output_file}" | ||
done | ||
|
||
for ((i=667; i<=999; i++)) | ||
do | ||
output_file="${i}_sample" | ||
|
||
$art -ss HS25 -sam -i ./ref_ART-Random_chr21.fa -l 35 -p -f 0.2 -m 100 -s 5 -M -ir 0.005 -ir2 0.005 -dr 0.005 -dr2 0.005 -na -o "./sam/trisomy/${output_file}" | ||
done |