Skip to content
Browse files

update docs to show how to get string of full chrom. closes #7.

  • Loading branch information...
1 parent febabe9 commit cf0cddb4277bc3a3dddd1cd17c8e4e11c1920ec2 @brentp committed
Showing with 8 additions and 1 deletion.
  1. +8 −1 README.rst
View
9 README.rst
@@ -31,10 +31,17 @@ Usage
NpyFastaRecord(0..80)
+
Slicing
-------
::
+ # get full the sequence:
+ >>> a = str(f['chr1'])
+ >>> b = f['chr1'][:]
+ >>> a == b
+ True
+
>>> f['chr1'][:10]
'ACTGACTGAC'
@@ -75,7 +82,7 @@ The default is to use a memmaped numpy array as the backend. In which case it's
get back an array directly...
::
- >>> f['chr1'].tostring = False
+ >>> f['chr1'].as_string = False
>>> f['chr1'][:10] # doctest: +NORMALIZE_WHITESPACE
memmap(['A', 'C', 'T', 'G', 'A', 'C', 'T', 'G', 'A', 'C'], dtype='|S1')

0 comments on commit cf0cddb

Please sign in to comment.
Something went wrong with that request. Please try again.