Skip to content

Commit

Permalink
Modify EvidenceQC to not create/expect additional column in median co…
Browse files Browse the repository at this point in the history
…verage file (#745)

* Modified python scripts to not create/expect additional column

* Removed iloc call
  • Loading branch information
kjaisingh authored and CuriousTim committed Nov 15, 2024
1 parent 9f8e93e commit c120767
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/WGD/bin/medianCoverage.R
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,6 @@ if(opts$binwise==TRUE){
write.table(res,args$args[2], sep="\t", col.names=T, row.names=F, quote=F)
}else{
res <- covPerSample(cov,mad=opts$mad)
names(res)[1] <- "sample_id"
names(res)[1] <- "#sample_id"
write.table(res,args$args[2], sep="\t", col.names=T, row.names=F, quote=F)
}
2 changes: 1 addition & 1 deletion src/sv-pipeline/scripts/make_evidence_qc_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def read_bincov_median(filename: str) -> pd.DataFrame:
df_median = pd.read_csv(filename, sep="\t").T
df_median = df_median.rename_axis(ID_COL).reset_index()
df_median.columns = [ID_COL, "median_coverage"]
df_median = df_median.iloc[1:].reset_index(drop=True)
df_median = df_median.reset_index(drop=True)
return df_median


Expand Down

0 comments on commit c120767

Please sign in to comment.