We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 653378d commit db15af9Copy full SHA for db15af9
Workshops/COMBINE_WA_2024.md
@@ -623,14 +623,15 @@ seqlengths
623
In this example, we filter this data set to ensure that the sample `788707_20171213_S` has at least one hit.
624
625
```
626
-dfs = df[df['788707_20171213_S'] > 0]
+dfs = df[df['788707_20171213_S.tsv'] > 0]
627
dfs
628
629
630
We are going to reshape this data frame so we can plot the samples on the x-axis and the depth on the y-axis.
631
632
633
-melted_df = dfs.reset_index().melt(id_vars='contig', var_name='Sample', value_name='Depth')
+melted_df = dfs.reset_index().melt(id_vars='index', var_name='Sample', value_name='Depth')
634
+melted_df = melted_df.rename(columns={'index': 'contig'})
635
melted_df
636
637
0 commit comments