def sequence_type(self):
if self.known_sequence_type is not None:<EOL><INDENT>return self.known_sequence_type<EOL><DEDENT>else:<EOL><INDENT>cmd='<STR_LIT>' % (self.command_line())<EOL>first_seq = subprocess.check_output(<EOL>cmd,<EOL>shell=True,<EOL>preexec_fn=lambda:signal(SIGPIPE, SIG_DFL)<EOL>)<EOL>_, seq = tuple(first_seq.strip().split('<STR_LIT:\n>'))<EOL>self.type = self._guess_sequence_type_from_string(seq)<EOL>logging.debug("<STR_LIT>" % self.type)<EOL>return self.type<EOL><DEDENT>
Guess the type of input sequence provided to graftM (i.e. nucleotide
        or amino acid) and return