import pandas as pd import matplotlib.pyplot as plt Read the CSV file into a DataFrame…
- User
import pandas as pd import matplotlib.pyplot as plt
Read the CSV file into a DataFrame
file_path = 'genes_averages-filtered.csv' data = pd.read_csv(file_path, sep=';')
Separate the data into genes and intergenic regions
genes = data[data['Gene name'].str.contains('gene')] intergenic = data[data['Gene name'].str.contains('INTERGENIC')]
Create a plot
plt.figure(figsize=(12, 6))
Plot and fill for genes (red) with smaller points
plt.plot(genes['starting bp'], genes['average'], color='red', label='Genes', marker='o', markersize=0) plt.fill_between(genes['starting bp'], genes['average'], color='red', alpha=0.3)
Plot and fill for intergenic regions (blue) with smaller points
plt.plot(intergenic['starting bp'], intergenic['average'], color='blue', label='Intergenic Regions', marker='o', markersize=0) plt.fill_between(intergenic['starting bp'], intergenic['average'], color='blue', alpha=0.3)
Add labels, title, and legend
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.