Skip to content

Commit f24a0b1

Browse files
committed
clarify doc string and remove paramater assignment
1 parent ef93cd9 commit f24a0b1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

selene_sdk/predict/model_predict.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,9 @@ def get_predictions(self,
536536
input : str
537537
A single sequence, or a path to the FASTA or BED file input.
538538
output_dir : str, optional
539-
Output directory to write the model predictions. If this is left
540-
blank a raw sequence input will be assumed.
539+
Default is None. Output directory to write the model predictions.
540+
If this is left blank a raw sequence input will be assumed, though
541+
an output directory is required for FASTA and BED inputs.
541542
output_format : {'tsv', 'hdf5'}, optional
542543
Default is 'tsv'. Choose whether to save TSV or HDF5 output files.
543544
TSV is easier to access (i.e. open with text editor/Excel) and
@@ -1138,8 +1139,7 @@ def variant_effect_prediction(self,
11381139
for r in reporters:
11391140
r.write_to_file()
11401141

1141-
def _pad_or_truncate_sequence(self, input_seq):
1142-
sequence = input_seq
1142+
def _pad_or_truncate_sequence(self, sequence):
11431143
if len(sequence) < self.sequence_length:
11441144
sequence = _pad_sequence(
11451145
sequence,

0 commit comments

Comments
 (0)