{"action":"created","issue":{"url":"https://api.github.com/repos/samtools/htsjdk/issues/431","labels_url":"https://api.github.com/repos/samtools/htsjdk/issues/431/labels{/name}","comments_url":"https://api.github.com/repos/samtools/htsjdk/issues/431/comments","events_url":"https://api.github.com/repos/samtools/htsjdk/issues/431/events","html_url":"https://github.com/samtools/htsjdk/pull/431","id":126084016,"number":431,"title":"adding a method to convert a FASTQ header (read name) to a read name","user":{"login":"nh13","id":846274,"avatar_url":"https://avatars.githubusercontent.com/u/846274?v=3","gravatar_id":"","url":"https://api.github.com/users/nh13","html_url":"https://github.com/nh13","followers_url":"https://api.github.com/users/nh13/followers","following_url":"https://api.github.com/users/nh13/following{/other_user}","gists_url":"https://api.github.com/users/nh13/gists{/gist_id}","starred_url":"https://api.github.com/users/nh13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nh13/subscriptions","organizations_url":"https://api.github.com/users/nh13/orgs","repos_url":"https://api.github.com/users/nh13/repos","events_url":"https://api.github.com/users/nh13/events{/privacy}","received_events_url":"https://api.github.com/users/nh13/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-12T02:37:25Z","updated_at":"2016-01-12T10:34:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/samtools/htsjdk/pulls/431","html_url":"https://github.com/samtools/htsjdk/pull/431","diff_url":"https://github.com/samtools/htsjdk/pull/431.diff","patch_url":"https://github.com/samtools/htsjdk/pull/431.patch"},"body":"string usable for output in a SAM or BAM file."},"comment":{"url":"https://api.github.com/repos/samtools/htsjdk/issues/comments/170868942","html_url":"https://github.com/samtools/htsjdk/pull/431#issuecomment-170868942","issue_url":"https://api.github.com/repos/samtools/htsjdk/issues/431","id":170868942,"user":{"login":"tfenne","id":1609210,"avatar_url":"https://avatars.githubusercontent.com/u/1609210?v=3","gravatar_id":"","url":"https://api.github.com/users/tfenne","html_url":"https://github.com/tfenne","followers_url":"https://api.github.com/users/tfenne/followers","following_url":"https://api.github.com/users/tfenne/following{/other_user}","gists_url":"https://api.github.com/users/tfenne/gists{/gist_id}","starred_url":"https://api.github.com/users/tfenne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfenne/subscriptions","organizations_url":"https://api.github.com/users/tfenne/orgs","repos_url":"https://api.github.com/users/tfenne/repos","events_url":"https://api.github.com/users/tfenne/events{/privacy}","received_events_url":"https://api.github.com/users/tfenne/received_events","type":"User","site_admin":false},"created_at":"2016-01-12T10:34:39Z","updated_at":"2016-01-12T10:34:39Z","body":"Looking at the tests I was surprised by this one:\r\n`{\"Name/1\", true, false, \"Name/1\"}`\r\n\r\nWouldn't you want to always remove any trailing `/1` or `/2` from paired reads?  Otherwise the template names won't match in the resulting SAM file?  \r\n\r\nI'd also be tempted to change it to take a single parameter `stripMateNumber` instead of the two booleans, and let the user decide how to set it."}}