def get_sample_info(self, individual=-<NUM_LIT:1>):
if isinstance(individual, str):<EOL><INDENT>individual = self.individuals[individual]<EOL><DEDENT>extra = OrderedDict()<EOL>for format_ in self.format:<EOL><INDENT>index = getattr(self, format_)<EOL>if index != -<NUM_LIT:1>:<EOL><INDENT>if format_ == '<STR_LIT>':<EOL><INDENT>d = self.genotype<EOL><DEDENT>elif format_ == '<STR_LIT>':<EOL><INDENT>d = self.genome_quality<EOL><DEDENT>elif format_ == '<STR_LIT>':<EOL><INDENT>d = self.depth<EOL><DEDENT>if individual == -<NUM_LIT:1>:<EOL><INDENT>if len(d) != len(self.samples):<EOL><INDENT>[self.parse_sample(i) for i in six.moves.range(len(self.samples))]<EOL><DEDENT>extra[format_] = [d[i] for i in six.moves.range(len(d))]<EOL><DEDENT>else:<EOL><INDENT>if individual not in d:<EOL><INDENT>self.parse_sample(individual)<EOL><DEDENT>extra[format_] = [d[individual]]<EOL><DEDENT><DEDENT><DEDENT>return extra<EOL>
Returns the sample info of a given sample or all by default