Skip to content

Commit 7128642

Browse files
committed
finalizes v0.1.8
1 parent d3477d8 commit 7128642

12 files changed

+82
-62
lines changed

eval/preprocess_all_of_GEUVADIS.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ RAILHOME=~/rail
77
# Set output directory here -- must be on S3!
88
OUTPUT=s3://rail-eu-west-1/geuvprepped
99

10-
python $RAILHOME/src prep elastic -m GEUVADIS_all_descriptive_staged.manifest -c 2 --core-instance-bid-price 0.35 --master-instance-bid-price 0.35 --core-instance-type c3.2xlarge --master-instance-type c3.2xlarge -o $OUTPUT --no-consistent-view -f --region eu-west-1 --do-not-check-manifest
10+
python $RAILHOME/src prep elastic -m GEUVADIS_all_descriptive_staged.manifest -c 1 -o $OUTPUT -f --region eu-west-1 --do-not-check-manifest --ec2-key-name raileuw1

eval/run_single_sample_sim.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ echo 'Computing precision and recall...'
128128
(cat Aligned.out.sam | $PYTHON $RAILHOME/eval/mapping_accuracy.py -t $DATADIR/${SAMPLE}_sim.bed -c 0.1 >${PERFORMANCE}_mapping_accuracy_SC_summary) &
129129
wait
130130
# Move Subjunc results to final destination
131-
mv $OUTPUT/subjunc $MAINOUTPUT
131+
mv $OUTPUT/subjunc $SAMPLEOUTPUT
132132
echo 'Running HISAT on sample '${SAMPLE}' with no annotation and in paired-end mode...'
133133
echo '#'${SAMPLE}' HISAT 1-pass noann paired' >>$TIMELOG
134134
mkdir -p $OUTPUT/hisat/noann_paired_1pass

releases/install_rail-rna-0.1.8

289 KB
Binary file not shown.

releases/install_rail-rna-devel

1.79 KB
Binary file not shown.

releases/install_rail-rna-v0.1.8

289 KB
Binary file not shown.

releases/install_rail-rna-vdevel

289 KB
Binary file not shown.

src/__main__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ def run(self, mode, payload):
923923
ec2_key_name=args.ec2_key_name,
924924
keep_alive=args.keep_alive,
925925
termination_protected=args.termination_protected,
926-
no_consistent_view=args.no_consistent_view,
926+
consistent_view=args.consistent_view,
927927
no_direct_copy=args.no_direct_copy,
928928
check_manifest=(not args.do_not_check_manifest),
929929
intermediate_lifetime=args.intermediate_lifetime,
@@ -989,7 +989,7 @@ def run(self, mode, payload):
989989
ec2_key_name=args.ec2_key_name,
990990
keep_alive=args.keep_alive,
991991
termination_protected=args.termination_protected,
992-
no_consistent_view=args.no_consistent_view,
992+
consistent_view=args.consistent_view,
993993
no_direct_copy=args.no_direct_copy,
994994
intermediate_lifetime=args.intermediate_lifetime,
995995
max_task_attempts=args.max_task_attempts
@@ -1025,7 +1025,7 @@ def run(self, mode, payload):
10251025
ec2_key_name=args.ec2_key_name,
10261026
keep_alive=args.keep_alive,
10271027
termination_protected=args.termination_protected,
1028-
no_consistent_view=args.no_consistent_view,
1028+
consistent_view=args.consistent_view,
10291029
no_direct_copy=args.no_direct_copy,
10301030
check_manifest=(not args.do_not_check_manifest),
10311031
intermediate_lifetime=args.intermediate_lifetime,

src/dooplicity/emr_runner.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,13 +228,15 @@ def run_job_flow(branding, json_config, force, no_browser=False,
228228
if 'bad request' in str(e).lower():
229229
raise RuntimeError('(' + str(e) + ');'
230230
+ (' ensure that IAM roles are '
231-
'configured properly, and try again. This '
231+
'configured properly. This '
232232
'may require talking to your AWS account '
233233
'admin. See '
234234
'http://docs.aws.amazon.com/ElasticMapReduce/'
235235
'latest/DeveloperGuide/emr-'
236236
'iam-roles-defaultroles.html for more '
237-
'information.'))
237+
'information. In most cases, the solution '
238+
'to is to run "aws emr '
239+
'create-default-roles", and try again.'))
238240
else:
239241
raise
240242
json_response = json.load(job_flow_response)

src/dooplicity/emr_simulator.py

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -363,10 +363,12 @@ def presorted_tasks(input_files, process_id, sort_options, output_dir,
363363
% process_id
364364
)):
365365
sort_command = (('set -eo pipefail; gzip -cd %s | '
366-
'%s -S %d %s | '
366+
'%s -S %d %s -t$\'%s\' | '
367367
'gzip -c -%d >%s')
368368
% (sort,
369-
unsorted_file, memcap, sort_options,
369+
unsorted_file, memcap,
370+
sort_options,
371+
separator.encode('string_escape'),
370372
gzip_level,
371373
unsorted_file[:-12] + '.gz'))
372374
try:
@@ -389,8 +391,11 @@ def presorted_tasks(input_files, process_id, sort_options, output_dir,
389391
'*.%s.unsorted'
390392
% process_id
391393
)):
392-
sort_command = '%s -S %d %s %s >%s' % (sort, memcap,
394+
sort_command = '%s -S %d %s -t$\'%s\' %s >%s' % (sort, memcap,
393395
sort_options,
396+
separator.encode(
397+
'string_escape'
398+
),
394399
unsorted_file,
395400
unsorted_file[:-9])
396401
try:
@@ -523,14 +528,18 @@ def step_runner_with_error_return(streaming_command, input_glob, output_dir,
523528
# Reducer. Merge sort the input glob.
524529
if gzip:
525530
# Use process substitution
526-
prefix = '(%s -S %d %s -m %s' % (sort, memcap, sort_options,
531+
prefix = '(%s -S %d %s -t$\'%s\' -m %s' % (
532+
sort, memcap, sort_options,
533+
separator.encode('string_escape'),
527534
' '.join(['<(gzip -cd %s)' % input_file
528535
for input_file in input_files]) + ')'
529536
)
530537
else:
531538
# Reducer. Merge sort the input glob.
532-
prefix = '%s -S %d %s -m %s' % (sort, memcap, sort_options,
533-
input_glob)
539+
prefix = '%s -S %d %s -t$\'%s\' -m %s' % (sort, memcap,
540+
sort_options,
541+
separator.encode('string_escape'),
542+
input_glob)
534543
err_file = os.path.abspath(os.path.join(err_dir, (
535544
('%d.log' % task_id)
536545
if attempt_number is None

src/rna/driver/rail-rna.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
∀ Rail-RNA v0.1.7d
1+
∀ Rail-RNA vdevel

0 commit comments

Comments
 (0)