In graphs_coverage.R, lines 48 and 49, for some samples may not be the same number of values, causing it to fill the missing values with the fist ones in the array again when filling the coverage table.
Example with wgs_course training_dataset:
# Line 47
cov_genome <- cov_graph[cov_graph$chr == "genome",]
At this point, cov_genome is a data.frame with no NA values and dimension 353x4.
Now, cov_table is a list of 10 elements, with 3 numerical values each BUT item 5, which only has 2.
# Line 49
cov_table <- do.call(rbind,cov_table)
Warning message:
In (function (..., deparse.level = 1) :
number of columns of result is not a multiple of vector length (arg 5)
The new table is being completed by replicating the first value of element 5 to fill the empty value.
Also, for the same dataset I am using, dimension of cov_table is 10x3, while in line 50 it is assumed to be 10x6, which causes an execution error for wgs_course pipeline.
In graphs_coverage.R, lines 48 and 49, for some samples may not be the same number of values, causing it to fill the missing values with the fist ones in the array again when filling the coverage table.
Example with wgs_course training_dataset:
At this point,
cov_genome
is a data.frame with no NA values and dimension 353x4.Now,
cov_table
is a list of 10 elements, with 3 numerical values each BUT item 5, which only has 2.The new table is being completed by replicating the first value of element 5 to fill the empty value.