Skip to content

Commit

Permalink
Update Figure_1.R
Browse files Browse the repository at this point in the history
  • Loading branch information
imilenkovic authored Nov 7, 2024
1 parent a7846c9 commit a7d2ade
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Figure_1/Figure_1.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ merged <- Reduce(function(x, y) merge(x, y, by = "pos"), inputs)
# Set column names
colnames(merged) <- c("position", files)

# Set column names and remove ".csv" from each column name
colnames(merged) <- c("position", gsub(".csv", "", files))


# Write merged data to file
#write.table(merged, file = "18S_summed_errors_all_samples.txt", quote = FALSE, row.names = TRUE, sep = "\t")

Expand Down Expand Up @@ -98,6 +102,9 @@ merged <- Reduce(function(x, y) merge(x, y, by = "pos"), inputs)
# Set column names
colnames(merged) <- c("position", files)

# Set column names and remove ".csv" from each column name
colnames(merged) <- c("position", gsub(".csv", "", files))

# Write merged data to file
#write.table(merged, file = "28S_summed_errors_all_samples.txt", quote = FALSE, row.names = TRUE, sep = "\t")

Expand Down

0 comments on commit a7d2ade

Please sign in to comment.