Skip to content

Commit

Permalink
working version ... needs changing later when the filename changes
Browse files Browse the repository at this point in the history
  • Loading branch information
epaule committed Nov 29, 2024
1 parent 95275dc commit 01de8b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/curation_tool.cr
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module CurationTool
cmd = <<-HERE
for f in #{id}.hap*.fa ;
do
Pretext_HiC_pipeline.sh -i $f -s $f -d . -k #{y.hic_read_dir} &"
Pretext_HiC_pipeline.sh -i $f -s $f -d . -k #{y.hic_read_dir} &
done
HERE
puts `#{cmd}`
Expand Down Expand Up @@ -89,16 +89,16 @@ module CurationTool
if y.merged
files = [["#{id}.hap1.fa", "#{id}.hap1.primary.curated.fa"],
["#{id}.hap2.fa", "#{id}.hap2.primary.curated.fa"],
["#{id}.hap1.chromosome.list.csv", "#{id}.hap1.primary.chromosome.list.csv"],
["#{id}.hap2.chromosome.list.csv", "#{id}.hap2.primary.chromosome.list.csv"],
["#{id}.hap1.chromsome.list.csv", "#{id}.hap1.primary.chromosome.list.csv"],
["#{id}.hap2.chromsome.list.csv", "#{id}.hap2.primary.chromosome.list.csv"]
]
["hap1", "hap2"].each { |hap|
FileUtils.touch("#{target_dir}/#{id}.#{hap}.#{hap}.all_haplotigs.fa")
}
else
files = [["#{id}.fa", "#{id}.primary.curated.fa"],
["#{id}.chromosome.list.csv", "#{id}.primary.chromosome.list.csv"],
["#{id}.haplotigs.fa", "#{id}.additional_haplotigs.curated.fa"],
["#{id}.haplotigs.fa", "#{id}.additional_haplotigs.curated.fa"]
]
end
files.each { |file_path|
Expand Down

0 comments on commit 01de8b4

Please sign in to comment.