<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def basename(self):
        '''Return the name of the file with the '.fasta' or 'fq.gz' etc
        removed'''
        return os.path.basename(self.read_file)[:-len(self._get_extension(self.read_file))]