Skip to content

Commit 40e86d2

Browse files
author
Susanne Bornelov
committed
Minor changes
1 parent dd38dca commit 40e86d2

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ If you need to analyze another organism, you can easily do so provided you have
2626

2727
### Installation
2828

29-
Download the latest version ([v1.0](https://github.com/susbo/concur/releases)) from the releases tab.
29+
Download the latest version ([v0.9](https://github.com/susbo/concur/releases)) from the releases tab.
3030

3131
The following commands will install CONCUR in your current directory:
3232
```
@@ -37,7 +37,7 @@ Verify that the tool is working with the example in the demo directory.
3737

3838
## Running CONCUR
3939

40-
You need a bam file with read alignments, `alignments.bam`, to run CONCUR. You also need to specify the genome, and an output directory.
40+
You need a bam file with read alignments, `alignments.bam`, to run CONCUR. You also need to specify the genome (`-g`) and an output directory (`-o`).
4141

4242
```
4343
perl concur.pl -i alignment.bam -g hg38 -o project_name
@@ -52,8 +52,8 @@ The following parameters are available
5252
| -i \-\-input | Input bam file [*mandatory*]
5353
| -g \-\-genome | Genome version (e.g., *hg38*, *hg19*, *mm10*, *mm9*, *rn9* or *sc3*) [*mandatory*]
5454
| -o \-\-out | Output folder name [*mandatory*]
55-
| -n \-\-name | Output file name [*optional*, input file name is used by default]
56-
| -s \-\-size | Fragment size range to use for analysis [*optional*, 20-50 used by default; non-informative lengths will automatically be excluded]
55+
| -n \-\-name | Output file name [*optional*]. Input file name is used by default.
56+
| -s \-\-size | Fragment size range to use for analysis [*optional*]. 20-50 is used by default; non-informative lengths will automatically be excluded.
5757
| \-\-noR | Run without creating figures using R
5858
| -h \-\-help | Print help message and quit
5959
| -m \-\-man | Print help message and quit
@@ -99,7 +99,7 @@ perl concur_install_genome.pl --gtf Homsap38.gtf.gz --fasta Homsap38.pcg.fa.gz -
9999
```
100100
The `--pcg` tag will assume that there is a string in the "CDS:61-1041" format in each fasta header line. The start and end position of the coding sequence is retrieved from this string and is used to extract the coding sequence from the full transcript sequence. Coding sequences where the length is not a multiple of three nucleotides will not be used.
101101

102-
This will create two files for mouse: data/mm10.bg.txt and data/mm10.bed.gz, and two files for human: data/hg38.bg.txt and data/hg38.bed.gz.
102+
This will create two files for mouse: `data/mm10.bg.txt` and `data/mm10.bed.gz`, and two files for human: `data/hg38.bg.txt` and `data/hg38.bed.gz`.
103103

104104
### Version
105105

concur.pl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/perl -w
2-
2+
print `date`;
33
# CONCUR: quick and robust calculation of codon usage from ribosome profiling data
4-
# Copyright (C) 2019 Susanne Bornelöv
4+
# Copyright (C) 2020 Susanne Bornelöv
55
#
66
# This program is free software: you can redistribute it and/or modify
77
# it under the terms of the GNU Affero General Public License as published
@@ -79,6 +79,8 @@
7979
FinalCodonFrequency();
8080
Validate() unless $noR;
8181

82+
print `date`;
83+
8284
sub GenomeToTranscript {
8385
print "[Step 1/10] Mapping genomic reads to transcripts...\n";
8486
mkdir "$tmp/genome_to_transcript";
@@ -430,7 +432,6 @@ sub CorrelateToBest {
430432
next;
431433
}
432434
my @tmp = split "\\.",$best_read[$pos];
433-
# $best = $tmp[0];
434435
my @cor_to_best;
435436
foreach my $i (1..9) {
436437
$cor_to_best[$i] = $cor{"$read.$i"}{"$best.$pos"}//0;

0 commit comments

Comments
 (0)