Genome structure predicts modular transcriptome responses to genetic and environmental conditions