radpipe/stages.py
def create_popmap_file(self, output, config_popmap_file, sample_list):
        '''
        Copy population map for populations if provided, else create a
        population map file using the sample list.
        '''
        safe_make_dir(os.path.dirname(output))
        if config_popmap_file:
            # Copy popmap file if user provided
            shutil.copyfile(config_popmap_file, output)
        else:
            # If no provided popmap file, create popmap using sample_list
            popmap = ["{}\t1".format(x) for x in sample_list]
            with open(output, "w") as f:
                f.write("\n".join(popmap))

        Copy population map for populations if provided, else create a
        population map file using the sample list.
        
Copy population map for populations if provided, else create a
population map file using the sample list.
Copy population map for populations if provided else create a population map file using the sample list .
def create_popmap_file(self, output, config_popmap_file, sample_list):
        safe_make_dir(os.path.dirname(output))
        if config_popmap_file:
            shutil.copyfile(config_popmap_file, output)
        else:
            popmap = ["{}\t1".format(x) for x in sample_list]
            with open(output, "w") as f:
                f.write("\n".join(popmap))
def create_popmap_file ( self , output , config_popmap_file , sample_list ) : safe_make_dir ( os . path . dirname ( output ) ) if config_popmap_file : shutil . copyfile ( config_popmap_file , output ) else : popmap = [ "{}\t1" . format ( x ) for x in sample_list ] with open ( output , "w" ) as f : f . write ( "\n" . join ( popmap ) )
Copy population map for populations if provided, else create a
population map file using the sample list.
Copy population map for populations if provided else create a population map file using the sample list .
'''
        Copy population map for populations if provided, else create a
        population map file using the sample list.
        ''' # Copy popmap file if user provided # If no provided popmap file, create popmap using sample_list
self
output
config_popmap_file
sample_list