Skip to content

Commit 9a0f1e7

Browse files
committed
bug in summ by ID
1 parent a3ce8b2 commit 9a0f1e7

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

R/summarise.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ summarise_rm_ID <- function(rm_table){
1919
tclass = unique(tclass),
2020
tstart = min(tstart),
2121
tend=min(tend),
22-
tlen = sum(tend + 1- qstart),
22+
tlen = sum(tend + 1- tstart),
2323
ali_type=unique(ali_type)), by="ID"]
2424

2525

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ by elements of different classes
7272
ggplot(kakapo_aggregated, aes(qlen, tclass)) +
7373
geom_col() +
7474
theme_bw(base_size=14) +
75-
scale_x_continuous(labels=Kb_lab)
75+
scale_x_continuous(labels=Mb_lab)
7676
```
7777

7878
Quite often, you will want to remove some fo the sequences that are included in

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ head(kakapo_aggregated)
7575
#> 4 376818 938 30.9 2.0 2.5 NC_044289.2 6657 7035 379 16469125
7676
#> 5 376817 397 36.4 7.9 0.4 NC_044289.2 7038 7291 254 16468869
7777
#> 6 376820 439 24.8 0.0 0.0 NC_044289.2 11629 11732 104 16464428
78-
#> n_aligned_segments complement tname tclass tstart tend tlen
79-
#> 1 1 + G-rich Low_complexity 1 44 -729
80-
#> 2 1 C TguLTR5d LTR/ERVL 8 293 -2003
81-
#> 3 1 C CR1-Y2_Aves LINE/CR1 3007 3338 -79
82-
#> 4 1 + CR1-Y2_Aves LINE/CR1 3008 3331 -3325
83-
#> 5 1 C CR1-Y2_Aves LINE/CR1 800 1072 -5965
84-
#> 6 1 C TguLTR5d LTR/ERVL 492 595 -11033
78+
#> n_aligned_segments complement tname tclass tstart tend tlen
79+
#> 1 1 + G-rich Low_complexity 1 44 44
80+
#> 2 1 C TguLTR5d LTR/ERVL 8 293 286
81+
#> 3 1 C CR1-Y2_Aves LINE/CR1 3007 3338 332
82+
#> 4 1 + CR1-Y2_Aves LINE/CR1 3008 3331 324
83+
#> 5 1 C CR1-Y2_Aves LINE/CR1 800 1072 273
84+
#> 6 1 C TguLTR5d LTR/ERVL 492 595 104
8585
#> ali_type
8686
#> 1 primary
8787
#> 2 primary
@@ -97,7 +97,7 @@ With this data, we can start to analyse the total amount of the scaffold covered
9797
ggplot(kakapo_aggregated, aes(qlen, tclass)) +
9898
geom_col() +
9999
theme_bw(base_size=14) +
100-
scale_x_continuous(labels=Kb_lab)
100+
scale_x_continuous(labels=Mb_lab)
101101
```
102102

103103
<img src="man/figures/README-unnamed-chunk-5-1.png" width="100%" />
75 Bytes
Loading

0 commit comments

Comments
 (0)