A threadlike, gene-carrying structure found in the nucleus of a eukaryotic cell and most visible during mitosis and meiosis; also, the main gene-carrying structure of a prokaryotic cell. Chromosomes consist of chromatin, a combination of DNA and protein.